nft-minter-tutorial
nft-minter-tutorial copied to clipboard
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]
[email protected] start react-scripts start
node:internal/modules/cjs/loader:488 throw e; ^
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in /home/
Node.js v17.4.0
You can try to delete node_modules folder and yarn.lock file on the minter-starter-files/ directory.
Run npm install, and npm update after that.
Then you will probably face a new error, where you need to use this command on macOs/linux:
export NODE_OPTIONS=--openssl-legacy-provider
Had the same issue, but solved it via those instructions: https://stackoverflow.com/questions/69693907/error-err-package-path-not-exported-package-subpath-lib-tokenize-is-not-d
https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported
E: I am also using Node.js v17.4.0.
npm update worked for me.
Delete node_modules & yarn.lock, run 'npm install' ...
In your package.json change:
"start": "react-scripts start" with,
"start": "react-scripts --openssl-legacy-provider start",
this worked for me, thank you!