ERROR
Class extends value undefined is not a constructor or null
TypeError: Class extends value undefined is not a constructor or null
at ./node_modules/@metaplex-foundation/mpl-token-metadata/dist/src/errors.js (http://localhost:3000/static/js/bundle.js:136753:40)
at options.factory (http://localhost:3000/static/js/bundle.js:545798:31)
at __webpack_require__ (http://localhost:3000/static/js/bundle.js:545197:32)
at fn (http://localhost:3000/static/js/bundle.js:545456:21)
at ./node_modules/@metaplex-foundation/mpl-token-metadata/dist/src/hooked/metadataDelegateRoleSeed.js (http://localhost:3000/static/js/bundle.js:155582:18)
at options.factory (http://localhost:3000/static/js/bundle.js:545798:31)
at __webpack_require__ (http://localhost:3000/static/js/bundle.js:545197:32)
at fn (http://localhost:3000/static/js/bundle.js:545456:21)
at ./node_modules/@metaplex-foundation/mpl-token-metadata/dist/src/hooked/index.js (http://localhost:3000/static/js/bundle.js:155562:14)
at options.factory (http://localhost:3000/static/js/bundle.js:545798:31)
A important point:
Only when something related to mplTokenMetadata is Written in the component, this one will be trigger. So something like:
useEffect(() => {
const test = async () => {
try {
const umiPk = publicKey(asset.mint.toBase58());
const res = await fetchDigitalAsset(umi, umiPk); // Even if not call, RunTime Error is trigger
} catch (error) {
console.log("Error checking nftForMint: ", error);
}
};
// test(); // <-- Commented, so test() is never called
}, [asset]);
Hi, I'm having a hard time make the library work on a react project.
When importing the following
And using:
I have the following runtime error:
A important point: