[MGNLFE-434] Upgrade angular-sample to use Angular 13 Created: 13/Mar/23  Updated: 11/Jul/23  Resolved: 17/Mar/23

Status: Closed
Project: Magnolia Frontend Helpers
Component/s: None
Affects Version/s: None
Fix Version/s: 1.4

Type: Improvement Priority: Neutral
Reporter: Phong Le Quoc Assignee: Phong Le Quoc
Resolution: Fixed Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: Not Specified Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Issue Links:
dependency
is depended upon by MGNLFE-393 Run frontend-helper with the latest L... Closed
Sub-Tasks:
Key
Summary
Type
Status
Assignee
MGNLFE-437 Implement Sub-task Completed Phong Le Quoc  
MGNLFE-438 Review Sub-task Completed Canh Nguyen  
MGNLFE-443 PiQA Sub-task Completed Phong Le Quoc  
MGNLFE-444 QA Sub-task Completed Phong Le Quoc  
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Epic Link: SPA Editor Backlog
Sprint: DevX 33
Story Points: 1
Team: DeveloperX
Work Started:

 Description   

Upgrade to angular@13 so NodeJS 18.15.0 can build successfully. Otherwise,

> angular-sample@1.0.0 build
> ng build⠹ Generating browser application bundles (phase: building)...Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:133:10)
    at BulkUpdateDecorator.hashFactory (/Users/phongle/magnolia/devx/frontend-helpers/samples/angular-sample/node_modules/webpack/lib/util/createHash.js:145:18)
    at BulkUpdateDecorator.update (/Users/phongle/magnolia/devx/frontend-helpers/samples/angular-sample/node_modules/webpack/lib/util/createHash.js:46:50)
    at RawSource.updateHash (/Users/phongle/magnolia/devx/frontend-helpers/samples/angular-sample/node_modules/webpack/node_modules/webpack-sources/lib/RawSource.js:77:8)
    at NormalModule._initBuildHash (/Users/phongle/magnolia/devx/frontend-helpers/samples/angular-sample/node_modules/webpack/lib/NormalModule.js:880:17)
    at handleParseResult (/Users/phongle/magnolia/devx/frontend-helpers/samples/angular-sample/node_modules/webpack/lib/NormalModule.js:946:10)
    at /Users/phongle/magnolia/devx/frontend-helpers/samples/angular-sample/node_modules/webpack/lib/NormalModule.js:1040:4
    at processResult (/Users/phongle/magnolia/devx/frontend-helpers/samples/angular-sample/node_modules/webpack/lib/NormalModule.js:755:11)
    at /Users/phongle/magnolia/devx/frontend-helpers/samples/angular-sample/node_modules/webpack/lib/NormalModule.js:819:5
node:internal/crypto/hash:71
  this[kHandle] = new _Hash(algorithm, xofLen);
                  ^Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:133:10)
    at BulkUpdateDecorator.hashFactory (/Users/phongle/magnolia/devx/frontend-helpers/samples/angular-sample/node_modules/webpack/lib/util/createHash.js:145:18)
    at BulkUpdateDecorator.update (/Users/phongle/magnolia/devx/frontend-helpers/samples/angular-sample/node_modules/webpack/lib/util/createHash.js:46:50)
    at RawSource.updateHash (/Users/phongle/magnolia/devx/frontend-helpers/samples/angular-sample/node_modules/webpack/node_modules/webpack-sources/lib/RawSource.js:77:8)
    at NormalModule._initBuildHash (/Users/phongle/magnolia/devx/frontend-helpers/samples/angular-sample/node_modules/webpack/lib/NormalModule.js:880:17)
    at handleParseResult (/Users/phongle/magnolia/devx/frontend-helpers/samples/angular-sample/node_modules/webpack/lib/NormalModule.js:946:10)
    at /Users/phongle/magnolia/devx/frontend-helpers/samples/angular-sample/node_modules/webpack/lib/NormalModule.js:1040:4
    at processResult (/Users/phongle/magnolia/devx/frontend-helpers/samples/angular-sample/node_modules/webpack/lib/NormalModule.js:755:11)
    at /Users/phongle/magnolia/devx/frontend-helpers/samples/angular-sample/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'
}

Reference: https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported

 


Generated at Mon Feb 12 05:47:23 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.