-
-
Notifications
You must be signed in to change notification settings - Fork 375
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 launching dev server #1643
Comments
Just a note for anyone else having this issue, a temporary workaround is to use the current LTS version of Node |
Unfortunately it's a breaking change in Node that caused pretty widespread breakages across the ecosystem. See webpack/webpack#14532 You'll need to set the package.json {
"scripts": {
"dev": "NODE_OPTIONS=--openssl-legacy-provider preact watch"
}
} It doesn't look like Webpack v4 will ever get fixed, so this is required if you want to use v17+. |
Is there any plans to upgrade preact-cli to use Webpack 5? |
Plans? Unfortunately no. We'd like to upgrade, but we have limited maintainers with even more limited time; upgrading Webpack is always a very time consuming process. See #1579 Edit: Well this comment is what pushed me into starting it on a Friday night, so... we're trying to get there. No idea if/when I'll get that done though. |
Closing this out as it's a duplicate of #1579 essentially. Please track that for any further updates. |
What is the current behaviour?
When trying to launch dev server I get this error message:
error:0308010C:digital envelope routines::unsupported
Steps to Reproduce
simple
template.What is the expected behaviour?
The dev server to launch
Please mention any other relevant information
I am running node 17 and this bug seems similar to this bug in
create-react-app
Please paste the results of
npx preact-cli info
here.The text was updated successfully, but these errors were encountered: