Uploaded image for project: 'Magnolia Frontend Helpers'
  1. Magnolia Frontend Helpers
  2. MGNLFE-434

Upgrade angular-sample to use Angular 13

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Neutral
    • 1.4
    • None
    • None
    • None
    • DevX 33
    • 1

    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

       

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            There are no Sub-Tasks for this issue.

            Activity

              People

                plequoc Phong Le Quoc
                plequoc Phong Le Quoc
                DeveloperX
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Work Started:

                  Checklists

                    Task DoD