[ 
https://issues.apache.org/jira/browse/AIRAVATA-3668?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18066581#comment-18066581
 ] 

Jayanth Vennamreddy commented on AIRAVATA-3668:
-----------------------------------------------

looks like this is a very old issue, but I've dug deeper into this issue and 
the associated repo. i've opened a PR to address Node 18 support issues in the 
Django portal. what I've fixed is enabling OpenSSL legacy provider for webpack 
compatibility and also updating webpack-cli to a version compatible with 
webpack 5 (to resolve install issues on modern npm). the build now completes 
successfully on Node 18 as well.

PR: https://github.com/apache/airavata-django-portal/pull/196

> Support Node 18
> ---------------
>
>                 Key: AIRAVATA-3668
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-3668
>             Project: Airavata
>          Issue Type: Bug
>            Reporter: Marcus Christie
>            Priority: Major
>
> Node 18 recently became the new LTS version.
> Build error:
> {noformat}
> $ webpack
> 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 module.exports 
> (/home/travis/build/apache/airavata-django-portal/django_airavata/apps/api/node_modules/webpack/lib/util/createHash.js:135:53)
>     at NormalModule._initBuildHash 
> (/home/travis/build/apache/airavata-django-portal/django_airavata/apps/api/node_modules/webpack/lib/NormalModule.js:417:16)
>     at handleParseError 
> (/home/travis/build/apache/airavata-django-portal/django_airavata/apps/api/node_modules/webpack/lib/NormalModule.js:471:10)
>     at 
> /home/travis/build/apache/airavata-django-portal/django_airavata/apps/api/node_modules/webpack/lib/NormalModule.js:503:5
>     at 
> /home/travis/build/apache/airavata-django-portal/django_airavata/apps/api/node_modules/webpack/lib/NormalModule.js:358:12
>     at 
> /home/travis/build/apache/airavata-django-portal/django_airavata/apps/api/node_modules/loader-runner/lib/LoaderRunner.js:373:3
>     at iterateNormalLoaders 
> (/home/travis/build/apache/airavata-django-portal/django_airavata/apps/api/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
>     at Array.<anonymous> 
> (/home/travis/build/apache/airavata-django-portal/django_airavata/apps/api/node_modules/loader-runner/lib/LoaderRunner.js:205:4)
>     at Storage.finished 
> (/home/travis/build/apache/airavata-django-portal/django_airavata/apps/api/node_modules/webpack/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16)
>     at 
> /home/travis/build/apache/airavata-django-portal/django_airavata/apps/api/node_modules/webpack/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9
>     at 
> /home/travis/build/apache/airavata-django-portal/django_airavata/apps/api/node_modules/graceful-fs/graceful-fs.js:115:16
>     at FSReqCallback.readFileAfterClose [as oncomplete] 
> (node:internal/fs/read_file_context:68:3) {
>   opensslErrorStack: [ 'error:03000086:digital envelope 
> routines::initialization error' ],
>   library: 'digital envelope routines',
>   reason: 'unsupported',
>   code: 'ERR_OSSL_EVP_UNSUPPORTED'
> }
> Node.js v18.12.0
> error Command failed with exit code 1.
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to