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

Fix react-scripts version to avoid an error #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lpelypenko
Copy link

The fix for the error that will be produced in user setup:

node -v
v18.20.1

Error that will be produced form react-scripts library:

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in /tmp/workspace/node_modules/postcss-safe-parser/node_modules/postcss/package.json

The error is fixed by upgrading https://www.npmjs.com/package/react-scripts to 5.0.1 version.

@npanis
Copy link

npanis commented Jun 12, 2024

Thank you for sharing this fix @lpelypenko! I hope they can update the package.json to fix this issue.

I also have the Cannot find module ‘ajv/dist/compile/codegen’ issue when I try to run npm start... it got fixed when I installed npm install ajv --save-dev

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

Successfully merging this pull request may close these issues.

2 participants