[ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' error
See original GitHub issueafter yarn create-react-app and yarn start, the below error message was displayed. how solve it? my node version is v17.0.1
> docker_react_app@0.1.0 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 /Users/satoutaishin/Desktop/practice/docker_react_app/node_modules/postcss-safe-parser/node_modules/postcss/package.json
at new NodeError (node:internal/errors:371:5)
at throwExportsNotFound (node:internal/modules/esm/resolve:416:9)
at packageExportsResolve (node:internal/modules/esm/resolve:669:3)
at resolveExports (node:internal/modules/cjs/loader:482:36)
at Function.Module._findPath (node:internal/modules/cjs/loader:522:31)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:999:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/Users/satoutaishin/Desktop/practice/docker_react_app/node_modules/postcss-safe-parser/lib/safe-parser.js:1:17) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
Node.js v17.0.1
Issue Analytics
- State:
- Created 2 years ago
- Reactions:10
- Comments:9
Top Results From Across the Web
131 - Stack Overflow
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in the package.json of a module in ...
Read more >Issues - GitHub
lib/tokenize' is not defined by "exports" for postcss-safe-parser ... [0] [0] Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath '.
Read more >React web app Node.js v17.0.1 - Flutter Developer
Solved — Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by “exports” in the package.json of a module ...
Read more >Introduction - dark-hamster
How to Solve Error Message [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by “exports” · First of all, taking ...
Read more >When I run yarn start , I get this error - Reddit
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in /root/.../package.json.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@nhall97 Exactly! we can not use create-react-app with node v17 I downgraded my node version 16 and worked
Great! Have a nice day!