Repository navigation
Error: error:0308010C:digital envelope routines::unsupported with Node.js 16.14.0 #23134
Description
Activity
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.4Are you providing the
NODE_OPTIONSin the below format?NODE_OPTIONS=--openssl-legacy-provider; ng serve- addedneeds: more infoReporter must clarify the issueReporter must clarify the issue
on May 16, 2022 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.4Reacted by Kudyakov ArtemI 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.4Are you providing the
NODE_OPTIONSin 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]$- added and removedneeds: more infoReporter must clarify the issueReporter must clarify the issue
on May 18, 2022 - added a commit that references this issue
on May 18, 2022 - linked a pull request that will close this issuefix(@angular-devkit/build-angular): update `babel-loader` to 8.2.5 #23168
on May 18, 2022 - added a commit that references this issue
on May 18, 2022 Closed via #23168
Thanks. It's working! ❤️
angular-automatic-lock-bot commented
on Jun 21, 2022 More actionsThis 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.
- locked and limited conversation to collaborators
on Jun 21, 2022
🐞 Bug report
Command (mark with an
x)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 servehttps://github.com/t3m8ch/angular-error
🔥 Exception or Error
🌍 Your Environment
Fedora Linux 36
Openssl 3.0.2
Node.js installed via dnf package manager