Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot start app using Node 17 #871

Closed
fabiopagoti opened this issue Jan 3, 2022 · 1 comment · Fixed by #872
Closed

Cannot start app using Node 17 #871

fabiopagoti opened this issue Jan 3, 2022 · 1 comment · Fixed by #872
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@fabiopagoti
Copy link
Contributor

fabiopagoti commented Jan 3, 2022

Describe the bug
Cannot start app using Node 17

To Reproduce
Steps to reproduce the behavior:

  1. Install node v17.3.0
  2. Clone this repo
  3. yarn start --verbose
  4. See error

fabio@hplinux:/storage/dev/coding-coach/find-a-mentor$ yarn start --verbose
yarn run v1.22.17
$ react-scripts start --verbose
node:internal/modules/cjs/loader:488
throw e;
^

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in /storage/dev/coding-coach/find-a-mentor/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. (/storage/dev/coding-coach/find-a-mentor/node_modules/postcss-safe-parser/lib/safe-parser.js:1:17) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}

Node.js v17.3.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Expected behavior
Project should be started

Desktop (please complete the following information):

  • OS: Ubuntu 20.04.3 LTS

Additional context
I assume the root cause is Node 17 due to the following related issues

postcss/postcss-safe-parser#29

facebook/create-react-app#11733

https://stackoverflow.com/questions/69693907/error-err-package-path-not-exported-package-subpath-lib-tokenize-is-not-d/69698758#69698758

@fabiopagoti fabiopagoti added bug Something isn't working help wanted Extra attention is needed labels Jan 3, 2022
@fabiopagoti
Copy link
Contributor Author

confirmed - downgrading to node 16 solves the problem

fabiopagoti added a commit to fabiopagoti/find-a-mentor that referenced this issue Jan 3, 2022
…e.json as app cannot be started using node 17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant