question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

angular router compile error 'ERR_OSSL_EVP_UNSUPPORTED'

See original GitHub issue

Which @angular/* package(s) are the source of the bug?

router

Is this a regression?

No

Description

ng build compile error

Please provide a link to a minimal reproduction of the bug

ng build

Please provide the exception or error you saw

⠹ Generating browser application bundles (phase: building)...node:internal/crypto/hash:67
  this[kHandle] = new _Hash(algorithm, xofLen);
                  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at BulkUpdateDecorator.hashFactory (/mnt/data/repo/HyperAI/HyperAI/node_modules/webpack/lib/util/createHash.js:145:18)
    at BulkUpdateDecorator.update (/mnt/data/repo/HyperAI/HyperAI/node_modules/webpack/lib/util/createHash.js:46:50)
    at RawSource.updateHash (/mnt/data/repo/HyperAI/HyperAI/node_modules/webpack/node_modules/webpack-sources/lib/RawSource.js:77:8)
    at NormalModule._initBuildHash (/mnt/data/repo/HyperAI/HyperAI/node_modules/webpack/lib/NormalModule.js:880:17)
    at handleParseResult (/mnt/data/repo/HyperAI/HyperAI/node_modules/webpack/lib/NormalModule.js:946:10)
    at /mnt/data/repo/HyperAI/HyperAI/node_modules/webpack/lib/NormalModule.js:1040:4
    at processResult (/mnt/data/repo/HyperAI/HyperAI/node_modules/webpack/lib/NormalModule.js:755:11)
    at /mnt/data/repo/HyperAI/HyperAI/node_modules/webpack/lib/NormalModule.js:819:5 {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}


### Please provide the environment you discovered this bug in

```true
Angular CLI: 12.2.10
Node: 17.0.0 (Unsupported)
Package Manager: npm 8.1.0
OS: linux x64

Angular: 12.2.10
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, material, platform-browser, platform-browser-dynamic
... router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1202.10
@angular-devkit/build-angular   12.2.10
@angular-devkit/core            12.2.10
@angular-devkit/schematics      12.2.10
@angular/flex-layout            12.0.0-beta.35
@schematics/angular             12.2.10
rxjs                            7.4.0
typescript                      4.3.5


### Anything else?

_No response_

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
Suyashtntcommented, Oct 31, 2021

its been fixed in webpack. When will it be fixed in the CLI?

0reactions
angular-automatic-lock-bot[bot]commented, Dec 1, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Webpack build failing with ERR_OSSL_EVP_UNSUPPORTED
I'm having an issue with a Webpack build process that suddenly broke, resulting in the following error... <s> [webpack.Progress] 10% building 0/ ...
Read more >
How to Solve "digital envelope routines unsupported" or ...
Solution for “digital envelope routines unsupported” or ERR_OSSL_EVP_UNSUPPORTED in Angular applications. Solution 1. Open your command prompt / ...
Read more >
How to fix err_ossl_evp_unsupported On NodeJs 17
If you hit an ERR_OSSL_EVP_UNSUPPORTED error in your application with Node.js 17, it's likely that your application or a module you're using ...
Read more >
err_ossl_evp_unsupported | The AI Search Engine You Control
If you hit an ERR_OSSL_EVP_UNSUPPORTED error in your application with ... angular/angular-cliangular router compile error 'ERR_OSSL_EVP_UNSUPPORTED'#21980.
Read more >
Unable to run Okta angular sample project - Questions
getting the following (2nd error trace stack below) when I attempt the following angular ... Compiling @angular/router : es2015 as esm2015
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found