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

Old node #382

Open
adrlau opened this issue Jan 7, 2024 · 0 comments
Open

Old node #382

adrlau opened this issue Jan 7, 2024 · 0 comments

Comments

@adrlau
Copy link

adrlau commented Jan 7, 2024

Tried running yarn install and yarn start. Yarn install had a lot of warnings and yarn run gave this output.

'''
yarn run v1.22.21
$ react-scripts start
node:internal/modules/cjs/loader:597
throw e;
^

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in /home/gunalx/Documents/pvv/voting-fullstack/voting-frontend/node_modules/postcss-safe-parser/node_modules/postcss/package.json
at exportsNotFound (node:internal/modules/esm/resolve:302:10)
at packageExportsResolve (node:internal/modules/esm/resolve:649:9)
at resolveExports (node:internal/modules/cjs/loader:590:36)
at Module._findPath (node:internal/modules/cjs/loader:667:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:1129:27)
at Module._load (node:internal/modules/cjs/loader:984:27)
at Module.require (node:internal/modules/cjs/loader:1234:19)
at require (node:internal/modules/helpers:176:18)
at Object. (/home/gunalx/Documents/pvv/voting-fullstack/voting-frontend/node_modules/postcss-safe-parser/lib/safe-parser.js:1:17)
at Module._compile (node:internal/modules/cjs/loader:1375:14) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}

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

'''

Possible solutions i can se is also shipping a docker file for the fronted to be able to pin the correct node version, or at least document correct version needed in the README.md .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant