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

Incompatibility with Node.js v17+ #4756

Closed
4ian opened this issue Dec 27, 2022 · 3 comments
Closed

Incompatibility with Node.js v17+ #4756

4ian opened this issue Dec 27, 2022 · 3 comments

Comments

@4ian
Copy link
Owner

4ian commented Dec 27, 2022

Describe the bug

When running with Node.js v17+, we get Error: error:0308010c:digital envelope routines::unsupported when doing npm start.

To Reproduce

  1. Use Node.js v17+
  2. cd newIDE/app && npm install && npm start

Other details

  • To workaround, we can replace:
    "start": "npm run import-resources && npm run make-version-metadata && react-scripts start",
    by:
    "start": "npm run import-resources && npm run make-version-metadata && react-scripts --openssl-legacy-provider --no-experimental-fetch start",
    in newIDE/app/package.json.

  • But we should upgrade create-react-app for a long term fix, because the problem is coming from webpack: react-scripts fails to build project with Node 17 facebook/create-react-app#11562

@tristanbob
Copy link
Contributor

Do you want to include the requirement to also have: --no-experimental-fetch on that same line? This is what works for me:

"start": "npm run import-resources && npm run make-version-metadata && react-scripts --openssl-legacy-provider --no-experimental-fetch start",

@4ian
Copy link
Owner Author

4ian commented Jan 7, 2023

Updated, thanks!

@4ian
Copy link
Owner Author

4ian commented Jul 25, 2023

Finally fixed.

@4ian 4ian closed this as completed Jul 25, 2023
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

2 participants