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

Error: error:0308010C:digital envelope routines::unsupported with Node.js 16.14.0 #23134

Closed
2 of 15 tasks
t3m8ch opened this issue May 14, 2022 · 6 comments · Fixed by #23168
Closed
2 of 15 tasks

Error: error:0308010C:digital envelope routines::unsupported with Node.js 16.14.0 #23134

t3m8ch opened this issue May 14, 2022 · 6 comments · Fixed by #23168

Comments

@t3m8ch
Copy link

t3m8ch commented May 14, 2022

🐞 Bug report

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • extract-i18n
  • run
  • config
  • help
  • version
  • doc

Is this a regression?

Didn't check.

Description

After initializing the project with ng new project_name (no routing enabled, scss selected as css preprocessor) I tried to run the project with ng serve. After that I got error: error:0308010C:digital envelope routines::unsupported. After searching on the internet for a solution I found that this error occurs with node 17+. To solve the problem I was advised either to roll back to a previous version of node.js, or to add --openssl-legacy-provider flag. I found that my version of node.js is 16.14.0. I tried to write the flag with the NODE_OPTIONS=--openssl-legacy-provider environment variable, to which I received a complaint that such a flag is not allowed. Then I wrote the following command: ng servce --openssl-legacy-provider, to which I got the same complaint.

🔬 Minimal Reproduction

ng new hello_angular
cd hello_angular
ng serve

https://github.com/t3m8ch/angular-error

🔥 Exception or Error


~/T/n/hello_angular ❯❯❯ ng serve                                                                                                                                       master
✔ Browser application bundle generation complete.

Initial Chunk Files   | Names         |  Raw Size
vendor.js             | vendor        |   1.37 MB | 
polyfills.js          | polyfills     | 294.80 kB | 
styles.css, styles.js | styles        | 173.69 kB | 
main.js               | main          |  48.20 kB | 
runtime.js            | runtime       |   6.52 kB | 

                      | Initial Total |   1.88 MB

Build at: 2022-05-14T10:07:17.769Z - Hash: 05c5e953898d2687 - Time: 4616ms

./node_modules/rxjs/dist/esm/index.js - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next ()
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise ()
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/rxjs/dist/esm/internal/observable/innerFrom.js - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next ()
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise ()
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/rxjs/dist/esm/internal/observable/timer.js - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next ()
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise ()
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/rxjs/dist/esm/internal/operators/auditTime.js - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next ()
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise ()
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/rxjs/dist/esm/internal/operators/bufferTime.js - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next ()
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise ()
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/rxjs/dist/esm/internal/operators/debounceTime.js - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next ()
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise ()
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/rxjs/dist/esm/internal/operators/delay.js - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next ()
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise ()
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/rxjs/dist/esm/internal/operators/sampleTime.js - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next ()
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise ()
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/rxjs/dist/esm/internal/operators/throttleTime.js - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next ()
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise ()
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/rxjs/dist/esm/internal/operators/timeInterval.js - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next ()
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise ()
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/rxjs/dist/esm/internal/operators/timeout.js - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next ()
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise ()
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/rxjs/dist/esm/internal/operators/timeoutWith.js - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next ()
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise ()
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/rxjs/dist/esm/internal/operators/windowTime.js - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next ()
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise ()
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/rxjs/dist/esm/internal/scheduled/scheduleAsyncIterable.js - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next ()
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise ()
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/rxjs/dist/esm/internal/util/isAsyncIterable.js - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next ()
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise ()
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/rxjs/dist/esm/internal/util/isReadableStreamLike.js - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next ()
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise ()
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/@angular/common/fesm2015/common.mjs - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next ()
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise ()
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/@angular/platform-browser/fesm2015/platform-browser.mjs - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next ()
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise ()
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97



** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **


✖ Failed to compile.
^C⏎            

🌍 Your Environment


Angular CLI: 13.3.5
Node: 16.14.0
Package Manager: npm 8.3.1
OS: linux x64

Angular: 13.3.8
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1303.5
@angular-devkit/build-angular   13.3.5
@angular-devkit/core            13.3.5
@angular-devkit/schematics      13.3.5
@angular/cli                    13.3.5
@ngtools/webpack                13.3.5
@schematics/angular             13.3.5
rxjs                            7.5.5
typescript                      4.6.4

Fedora Linux 36
Openssl 3.0.2
Node.js installed via dnf package manager

@alan-agius4
Copy link
Collaborator

I wasn't able to replicate this with Node.JS 16.15.0

npm start

> hello-angular@0.0.0 start
> ng serve

✔ Browser application bundle generation complete.

Initial Chunk Files   | Names         |  Raw Size
vendor.js             | vendor        |   1.70 MB | 
polyfills.js          | polyfills     | 294.80 kB | 
styles.css, styles.js | styles        | 173.69 kB | 
main.js               | main          |  47.68 kB | 
runtime.js            | runtime       |   6.52 kB | 

                      | Initial Total |   2.21 MB

Build at: 2022-05-16T07:21:04.608Z - Hash: fa4f15a6a88d3083 - Time: 8631ms

** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **


✔ Compiled successfully.
 
 ~/cli-reproductions/angular-error   master  npm run ng v

> hello-angular@0.0.0 ng
> ng "v"


     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 13.3.5
Node: 16.15.0
Package Manager: npm 8.5.5
OS: linux x64

Angular: 13.3.8
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1303.5
@angular-devkit/build-angular   13.3.5
@angular-devkit/core            13.3.5
@angular-devkit/schematics      13.3.5
@angular/cli                    13.3.5
@ngtools/webpack                13.3.5
@schematics/angular             13.3.5
rxjs                            7.5.5
typescript                      4.6.4

Are you providing the NODE_OPTIONS in the below format?

NODE_OPTIONS=--openssl-legacy-provider; ng serve

@alan-agius4 alan-agius4 added the needs: more info Reporter must clarify the issue label May 16, 2022
@benjamincjacob
Copy link

I am seeing the same behavior on Fedora 36 with Node 16.14.0 and Node 16.15.0. That node options setting gives me the same invalid errors. Only way I was able to solve was to upgrade to angular cli to rc 14.

Angular CLI: 13.3.5
Node: 16.15.0
Package Manager: npm 8.10.0
OS: linux x64
Angular: 13.3.8
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Package Version

@angular-devkit/architect 0.1303.5
@angular-devkit/build-angular 13.3.5
@angular-devkit/core 13.3.5
@angular-devkit/schematics 13.3.5
@angular/cli 13.3.5
@schmatic/angular 13.3.5
rxjs 7.5.5
typescript 4.6.4

@t3m8ch
Copy link
Author

t3m8ch commented May 17, 2022

I wasn't able to replicate this with Node.JS 16.15.0

npm start

> hello-angular@0.0.0 start
> ng serve

✔ Browser application bundle generation complete.

Initial Chunk Files   | Names         |  Raw Size
vendor.js             | vendor        |   1.70 MB | 
polyfills.js          | polyfills     | 294.80 kB | 
styles.css, styles.js | styles        | 173.69 kB | 
main.js               | main          |  47.68 kB | 
runtime.js            | runtime       |   6.52 kB | 

                      | Initial Total |   2.21 MB

Build at: 2022-05-16T07:21:04.608Z - Hash: fa4f15a6a88d3083 - Time: 8631ms

** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **


✔ Compiled successfully.
 
 ~/cli-reproductions/angular-error   master  npm run ng v

> hello-angular@0.0.0 ng
> ng "v"


     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 13.3.5
Node: 16.15.0
Package Manager: npm 8.5.5
OS: linux x64

Angular: 13.3.8
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1303.5
@angular-devkit/build-angular   13.3.5
@angular-devkit/core            13.3.5
@angular-devkit/schematics      13.3.5
@angular/cli                    13.3.5
@ngtools/webpack                13.3.5
@schematics/angular             13.3.5
rxjs                            7.5.5
typescript                      4.6.4

Are you providing the NODE_OPTIONS in the below format?

NODE_OPTIONS=--openssl-legacy-provider; ng serve
[artem@DESKTOP-CHNC718 hello_angular]$ NODE_OPTIONS=--openssl-legacy-provider; ng serve
✔ Browser application bundle generation complete.

Initial Chunk Files   | Names         |  Raw Size
vendor.js             | vendor        |   1.37 MB | 
polyfills.js          | polyfills     | 294.80 kB | 
styles.css, styles.js | styles        | 173.69 kB | 
main.js               | main          |  48.20 kB | 
runtime.js            | runtime       |   6.52 kB | 

                      | Initial Total |   1.88 MB

Build at: 2022-05-17T07:29:55.631Z - Hash: 05c5e953898d2687 - Time: 5687ms

./node_modules/rxjs/dist/esm/index.js - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise (<anonymous>)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/rxjs/dist/esm/internal/observable/innerFrom.js - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise (<anonymous>)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/rxjs/dist/esm/internal/observable/timer.js - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise (<anonymous>)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/rxjs/dist/esm/internal/operators/auditTime.js - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise (<anonymous>)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/rxjs/dist/esm/internal/operators/bufferTime.js - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise (<anonymous>)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/rxjs/dist/esm/internal/operators/debounceTime.js - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise (<anonymous>)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/rxjs/dist/esm/internal/operators/delay.js - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise (<anonymous>)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/rxjs/dist/esm/internal/operators/sampleTime.js - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise (<anonymous>)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/rxjs/dist/esm/internal/operators/throttleTime.js - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise (<anonymous>)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/rxjs/dist/esm/internal/operators/timeInterval.js - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise (<anonymous>)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/rxjs/dist/esm/internal/operators/timeout.js - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise (<anonymous>)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/rxjs/dist/esm/internal/operators/timeoutWith.js - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise (<anonymous>)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/rxjs/dist/esm/internal/operators/windowTime.js - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise (<anonymous>)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/rxjs/dist/esm/internal/scheduled/scheduleAsyncIterable.js - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise (<anonymous>)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/rxjs/dist/esm/internal/util/isAsyncIterable.js - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise (<anonymous>)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/rxjs/dist/esm/internal/util/isReadableStreamLike.js - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise (<anonymous>)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/@angular/common/fesm2015/common.mjs - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise (<anonymous>)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97

./node_modules/@angular/platform-browser/fesm2015/platform-browser.mjs - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at filename (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:102:23)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:128:39
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:194)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise (<anonymous>)
    at /mnt/Trash/artem/nodeprojs/hello_angular/node_modules/babel-loader/lib/cache.js:5:97



** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **


✖ Failed to compile.
^C[artem@DESKTOP-CHNC718 hello_angular]$ NODE_OPTIONS=--openssl-legacy-provider ng serve
node: --openssl-legacy-provider is not allowed in NODE_OPTIONS
[artem@DESKTOP-CHNC718 hello_angular]$ 

@clydin clydin added type: bug/fix and removed needs: more info Reporter must clarify the issue labels May 18, 2022
clydin added a commit to clydin/angular-cli that referenced this issue May 18, 2022
The newer version of `babel-loader` contains a fix for its hash function usage
that will cause it to not use MD4 on Node.js versions that no longer support that
hashing algorithm.

Fixes angular#23134
clydin added a commit that referenced this issue May 18, 2022
The newer version of `babel-loader` contains a fix for its hash function usage
that will cause it to not use MD4 on Node.js versions that no longer support that
hashing algorithm.

Fixes #23134
@alan-agius4
Copy link
Collaborator

Closed via #23168

@t3m8ch
Copy link
Author

t3m8ch commented May 21, 2022

Thanks. It's working! ❤️

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jun 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants