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

It is recommended to add a reminder that the node version is too high in the guide. #3178

Open
zhangwt-cn opened this issue Oct 19, 2023 · 2 comments

Comments

@zhangwt-cn
Copy link

Feature request

What problem does this feature solve?

If the node version is too high(node 18), npm run docs:build will not be executed properly. Although this is a problem with node, I think it is necessary to add problems caused by too high a node version in the guide.

(undefined) assets/js/styles.8f3dca9f.js from Terser
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:69:19)
    at Object.createHash (node:crypto:133:10)
    at /Users/zhangwentao/vscode/notes/node_modules/terser-webpack-plugin/dist/index.js:217:37
    at Array.forEach (<anonymous>)
    at TerserPlugin.optimizeFn (/Users/zhangwentao/vscode/notes/node_modules/terser-webpack-plugin/dist/index.js:160:259)
    at _next0 (eval at create (/Users/zhangwentao/vscode/notes/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:13:1)
    at eval (eval at create (/Users/zhangwentao/vscode/notes/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:30:1)
(undefined) assets/js/1.7f771cfb.js from Terser

What does the proposed API look like?

How should this be implemented in your opinion?

It is recommended to add a reminder that the node version is too high in the guide.

Are you willing to work on this yourself?

Yes I would very much like to

@nbari
Copy link

nbari commented Nov 18, 2023

what version currently works, and is supported, I am trying the latest 20, and 18 and still getting a similar error:

(undefined) assets/js/styles.d74e1dbf.js from Terser
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:69:19)
    at Object.createHash (node:crypto:133:10)

Just found out that works with version 16, why this? any plans to make it work with the latest LTS or some alternatives?

@TonyRL
Copy link

TonyRL commented Dec 15, 2023

See #3136, #3095 and webpack/webpack#14532

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

3 participants