You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I installed and am trying to use in my create-react-app but I'm getting this error. Any ideas?
Compiled with problems:
ERROR in ./node_modules/@solana/spl-name-service/dist/utils.js 14:33-50
Module not found: Error: Can't resolve 'asseCompiled with problems:
ERROR in ./node_modules/@solana/spl-name-service/dist/utils.js 14:33-50
Module not found: Error: Can't resolve 'assert' in '/media/joeyspen/Game Drive/learning/SolanaProject/node_modules/@solana/spl-name-service/dist'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "assert": require.resolve("assert/") }'
- install 'assert'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "assert": false }
ERROR in ./node_modules/@solana/spl-name-service/dist/utils.js 16:17-34
Module not found: Error: Can't resolve 'crypto' in '/media/joeyspen/Game Drive/learning/SolanaProject/node_modules/@solana/spl-name-service/dist'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "crypto": require.resolve("crypto-browserify") }'
- install 'crypto-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "crypto": false }rt' in '/media/joeyspen/Game Drive/learning/SolanaProject/node_modules/@solana/spl-name-service/dist'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "assert": require.resolve("assert/") }'
- install 'assert'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "assert": false }
ERROR in ./node_modules/@solana/spl-name-service/dist/utils.js 16:17-34
Module not found: Error: Can't resolve 'crypto' in '/media/joeyspen/Game Drive/learning/SolanaProject/node_modules/@solana/spl-name-service/dist'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "crypto": require.resolve("crypto-browserify") }'
- install 'crypto-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "crypto": false }
The text was updated successfully, but these errors were encountered:
Hi 👋
Looks like create react app uses webpack 5 which have beeaking changes for some of used Solana modules.
The only quick fix would be to use Webpack 4. But Im not sure how to enable it with CRA.
I will check tomorrow if I can fix it and deploy update. Thank you for reporting!
Hi, I installed and am trying to use in my create-react-app but I'm getting this error. Any ideas?
The text was updated successfully, but these errors were encountered: