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

ERROR Error: error:0308010C:digital envelope routines::unsupported #1776

Closed
soichih opened this issue Jan 17, 2023 · 1 comment
Closed

ERROR Error: error:0308010C:digital envelope routines::unsupported #1776

soichih opened this issue Jan 17, 2023 · 1 comment

Comments

@soichih
Copy link

soichih commented Jan 17, 2023

I've installed a new preact App with node v18 on Ubuntu 18 machine.

npx preact-cli create default ui-playground

When I run npm run dev (or any other commands really) I ran into the following error message.

 ERROR 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/shayashi/git/ui-playground/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/home/shayashi/git/ui-playground/node_modules/webpack/lib/NormalModule.js:417:16)
    at handleParseError (/home/shayashi/git/ui-playground/node_modules/webpack/lib/NormalModule.js:471:10)
    at /home/shayashi/git/ui-playground/node_modules/webpack/lib/NormalModule.js:503:5
    at /home/shayashi/git/ui-playground/node_modules/webpack/lib/NormalModule.js:358:12
    at /home/shayashi/git/ui-playground/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (/home/shayashi/git/ui-playground/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at iterateNormalLoaders (/home/shayashi/git/ui-playground/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
    at /home/shayashi/git/ui-playground/node_modules/loader-runner/lib/LoaderRunner.js:236:3
    at context.callback (/home/shayashi/git/ui-playground/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
    at /home/shayashi/git/ui-playground/node_modules/babel-loader/lib/index.js:44:71

I tried updating node / npm etc.. but I can't seem to correct this issue. Could you help?

@rschristian rschristian transferred this issue from preactjs/preact Jan 17, 2023
@rschristian
Copy link
Member

See #1643, #1773

@rschristian rschristian closed this as not planned Won't fix, can't repro, duplicate, stale Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants