I'm attempting to utilize @metaplex/js for NFT minting. Usually, my .js files function correctly, but when I execute the file, this particular error arises.
bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?)
The meaning of this escapes me. Thus, I attempted to execute npm run rebuild, only to discover that 'rebuild' is a missing script and I couldn't locate a way to install it.
Below is my code snippet:
import { Connection, programs} from "@metaplex/js";
import { Loader } from "@solana/web3.js";
const { metadata: {Metadata}} = programs;
const connection = new Connection("devnet");
const tokenPublicKey = 'my_adress';
const run = async() => {
try{
const ownedMetadata = await Metadata.Loader(connection,tokenPublicKey)
console.log(ownedMetadata)
}
catch{
console.log('Failed to fetch')
}
};
run();
If you have any insights or an explanation regarding the nature of my error, I would greatly appreciate it.