metaplex-foundation / js

A JavaScript SDK for interacting with Metaplex's programs
357 stars 182 forks source link

Module build failed: Error: ENOENT: no such file or directory | spl-token #199

Closed dromaz closed 2 years ago

dromaz commented 2 years ago

Hey I use the @metaplex-foundation/js in the browser everything works fine but when I add the spl-token package I got this error log Module build failed: Error: ENOENT: no such file or directory, open './node_modules/@metaplex-foundation/js/node_modules/@solana/spl-token/lib/cjs/index.js' btw I use nextJS with ts

dromaz commented 2 years ago

Be able to fix this by adding this to the package.json

"resolutions": {
    "@solana/spl-token": "0.2.0"
  }