Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibility with Node >= v17 #206

Open
wetneb opened this issue Jul 8, 2024 · 0 comments
Open

Incompatibility with Node >= v17 #206

wetneb opened this issue Jul 8, 2024 · 0 comments

Comments

@wetneb
Copy link
Contributor

wetneb commented Jul 8, 2024

I followed the Getting Started instructions and (after fixing #204) I got the following error:

ERROR in ./src/index.tsx
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:79:19)
    at Object.createHash (node:crypto:139:10)
    at filename (/home/user/my-plugin/webapp/node_modules/babel-loader/lib/cache.js:94:23)
    at /home/user/my-plugin/webapp/node_modules/babel-loader/lib/cache.js:120:39
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (/home/user/my-plugin/webapp/node_modules/babel-loader/lib/cache.js:3:103)
    at _next (/home/user/my-plugin/webapp/node_modules/babel-loader/lib/cache.js:5:194)
    at /home/user/my-plugin/webapp/node_modules/babel-loader/lib/cache.js:5:364
    at new Promise (<anonymous>)
    at /home/user/my-plugin/webapp/node_modules/babel-loader/lib/cache.js:5:97

webpack 5.92.1 compiled with 1 error in 512 ms
make: *** [Makefile:221 : webapp] Erreur 1

Running npm update and npm audit fix --force did not solve the problem.

Node version: v20.15.0
Operating system: debian trixie (testing)

A workaround is to add export NODE_OPTIONS=--openssl-legacy-provider.

It would be great if newer versions of NPM could be supported too.

@wetneb wetneb changed the title Build failure due to outdated babel-loader dependency? Incompatibility with Node >= v17 Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant