-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Error:0308010C:digital envelope routines::unsupported #11708
Comments
I am having the same issue with Windows 10 21H1 (19048.1348), WSL 2 (Ubuntu 20.04.3 LTS) and Node 17.0.1. We have
|
While you wait for a new CRA version, you can run Node version 16 without uninstalling version 17 using
Have a look at creating a I assume the issue is CRA using webpack-v4 and is resolved upgrading to v5 ( I haven’t actually validated this ) (#14532) |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
Came across the same bug. |
I'm also experiencing this problem with the latest version of nodejs and NPM: |
I'm having the same issue within CentOs Stream Version 9: My work around was to down-grade Node: $ npm install -g n $ nvm install 16.13.1 Then I was able to continue with the build process. |
Running react build also triggers this problem. The only workaround right now is to use Node 16.x |
Just as @TadRodgers and @Manuel-Suarez-Abascal mentioned: downgrading node is probably the best way to go. Did that and everything is working just fine now. I used:
|
workaround is not what I am looking for rn :( |
Haha, @rhythmshandlya You can try the Alpha release that supports webpack v5 and see if you get the same error. I'm sure the devs would appreciate the testing feedback.
|
I faced this error on Windows 10 as well as Ubuntu due to Node version 17. |
Hi, I am using CRA 5 and I am having the same error, Do you know when it will be fixed? Thanks! |
@RodrigoTomeES , is there any reason to use Node V17 over Node 16 LTS? |
@maulik-modi Hi, I am using this new feature from Node 17. import config from './sample.config.json' assert { type: 'json' }; |
I got this error while importing svg ( |
In our case, we didn't downgrade node and kept v17.x but we added this to the package.json build command: |
Just for anyone finding this; it's not exclusively a v17.x issue, but depends on the system openssl version. For example I hit this on Fedora 36 with the packaged version of nodejs (16.14.0) -- this doesn't have the |
cd into your newly created app directory run the following Then: Then: Then: |
I am encountering this bug on a clean Ubuntu 22.04 machine with the lastest CRA (5.0.1). Are there any news on when it should be fixed? |
Thanks, it helped me to resolve my issue😊 |
Lol installing 16.13.1 and then reinstalling node_modules results in:
On the other hand, adding the |
Adding the Steps to resolve the issue using
It should look like this : |
first, check your local System version for npm ( npm -v ) and node ( node -v ) and add in your package.json |
Updating
|
I find this works to just use node 18.... |
it works with react projects. many thanks |
I am struggling with this too.... I tried to run my @react app and got Error:0308010C:digital envelope routines::unsupported. |
Have you tried setting this ENV VAR?
I haven't tried it against node v19 yet but it works for us on node 18.4.0 and on Note however that for us this needs to be just a temporary solution until the issue is resolved in the underlying dependency since its likely we want to be able to use to non-legacy openssl provider in the long term |
@julianD77 I've tried that and it's still the same problem for me. |
It`s worked for me |
when i start in termux app(android) it goes error like this too
maybe it just unsupported on babel loader CMIIW |
This works for me! |
This one works perfectly well! |
I installed `npm install [email protected] --save-exact`. I think subsequent `node install` should use exact node version because the former added `node: 14.17.6,` as a dependency in `package.json` For a more recent node version two things need to happen: - `node-sass` complained, so needs to be replaced with `sass` (e.g.^1.64.1) which is implemented with dart (pure-JavaScript package built from the Dart Sass) - node 17 needs openSSL dependency for crypto module (is used by webpack server or sth like that). I could consider moving to vite instead of webpack facebook/create-react-app#11708 https://stackoverflow.com/questions/73144960/error-error0308010cdigital-envelope-routinesunsupported-at-new-hash-nodei
Hello, if this can help future people encountering this issue. Here is the fix: On my project I specified a resolution for this dependency and it's working perfectly without the need for specifying Node's Extract from {
"name": "My project",
"version": "1.0.0",
"dependencies": {
"react-scripts": "^5.0.1",
...
},
+ "resolutions": {
+ "loader-utils": "^2.0.1"
+ }
} |
Describe the bug
I installed the latest Node version, currently, it's
17.2.0
. When I try to start the project in development mode with the commandnpm run start
, it throws an error & it's unable to start the project for development.Pre-requisites:
17.2.0
.8.1.41
.Windows PowerShell
Steps to reproduce:
npx create-react-app hello-world
npm run start
Expected results
It was expected to compile in dev mode & launch React's app in the browser like in the screenshot below: ( which it's using Node's version
16.13.1
)Actual results
It doesn't compile & it throws the following error instead:
This is a screenshot of the issue:
Workaround
17.2.0
16.13.1
npm run start
The app should compile now.
The text was updated successfully, but these errors were encountered: