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
After creating a new app with create-react-app it won't start:
yarn run v1.22.17
$ 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/pawel/dev/baz/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:429:9)
at packageExportsResolve (node:internal/modules/esm/resolve:683: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> (/home/pawel/dev/baz/node_modules/postcss-safe-parser/lib/safe-parser.js:1:17) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
Node.js v17.1.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
It seems that the version of postcss-safe-parser used by create-react-app is not working with node 17: postcss/postcss-safe-parser#29
Steps to reproduce
Install node 17
Create a new app with create-react-app foo
cd foo
yarn start or npm start
The app won't start, the error above is the reason
The text was updated successfully, but these errors were encountered:
PawelMorawian
changed the title
Creating a new app is broken with node 17 because
Creating a new app is broken with node 17 because of postcss version
Dec 10, 2021
Describe the bug
After creating a new app with
create-react-app
it won't start:It seems that the version of
postcss-safe-parser
used bycreate-react-app
is not working with node 17: postcss/postcss-safe-parser#29Steps to reproduce
create-react-app foo
cd foo
yarn start
ornpm start
The text was updated successfully, but these errors were encountered: