vuejs / vuepress

📝 Minimalistic Vue-powered static site generator

Home Page:https://vuepress.vuejs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

zhangwt-cn opened this issue · comments

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

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?