Skip to content

Fails to run with latest node #214

Open
@mimi89999

Description

@mimi89999

Hello,

When running under Node v20.17.0, I'm affected by webpack/webpack#14532 and getting the following error:

michel@debian:/dev/shm/wasm-test/www$ npm run start

> create-wasm-app@0.1.0 start
> webpack-dev-server

(node:651137) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
ℹ 「wds」: Project is running at http://localhost:8080/
ℹ 「wds」: webpack output is served from /
ℹ 「wds」: Content not from webpack is served from /dev/shm/wasm-test/www
node:internal/crypto/hash:79
  this[kHandle] = new _Hash(algorithm, xofLen, algorithmId, getHashCache());
                  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:79:19)
    at Object.createHash (node:crypto:139:10)
    at module.exports (/dev/shm/wasm-test/www/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/dev/shm/wasm-test/www/node_modules/webpack/lib/NormalModule.js:417:16)
    at handleParseError (/dev/shm/wasm-test/www/node_modules/webpack/lib/NormalModule.js:471:10)
    at /dev/shm/wasm-test/www/node_modules/webpack/lib/NormalModule.js:503:5
    at /dev/shm/wasm-test/www/node_modules/webpack/lib/NormalModule.js:358:12
    at /dev/shm/wasm-test/www/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (/dev/shm/wasm-test/www/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at Array.<anonymous> (/dev/shm/wasm-test/www/node_modules/loader-runner/lib/LoaderRunner.js:205:4)
    at Storage.finished (/dev/shm/wasm-test/www/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:43:16)
    at /dev/shm/wasm-test/www/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:79:9
    at /dev/shm/wasm-test/www/node_modules/graceful-fs/graceful-fs.js:78:16
    at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read/context:68:3) {
  opensslErrorStack: [
    'error:03000086:digital envelope routines::initialization error',
    'error:0308010C:digital envelope routines::unsupported'
  ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v20.17.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions