metaplex-foundation / mpl-token-metadata

Program to attach additional data to Fungible or Non-Fungible tokens on Solana.
https://developers.metaplex.com/token-metadata
Other
98 stars 42 forks source link

Class extends value undefined is not a constructor or null #121

Open IbrahimSam96 opened 4 weeks ago

IbrahimSam96 commented 4 weeks ago

Hello Metaplex Dev team/ OS gang;

Anyone came across this issue ? I literally just followed the getting started and got hit with this on the first line of code. Would appreciate any takes on how to solve this!

    "@metaplex-foundation/mpl-token-metadata": "^3.2.1",
    "@metaplex-foundation/umi": "^0.9.1",
    "@metaplex-foundation/umi-bundle-defaults": "^0.9.1",

const umi = createUmi('https://api.devnet.solana.com').use(mplTokenMetadata());
Uncaught runtime errors:
×
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/vendors-node_modules_metaplex-foundation_mpl-token-metadata_dist_src_index_js-node_modules_me-1c523c.chunk.js:327:40)
    at options.factory (http://localhost:3000/static/js/bundle.js:144578:31)
    at __webpack_require__ (http://localhost:3000/static/js/bundle.js:143966:33)
    at fn (http://localhost:3000/static/js/bundle.js:144235:21)
    at ./node_modules/@metaplex-foundation/mpl-token-metadata/dist/src/hooked/metadataDelegateRoleSeed.js (http://localhost:3000/static/js/vendors-node_modules_metaplex-foundation_mpl-token-metadata_dist_src_index_js-node_modules_me-1c523c.chunk.js:19200:18)

I tested with create-next-app from scratch and works fine. But fails with create-react-app v18&17