Open Kreijstal opened 2 years ago
Same problem here. For a temporary fix, use node 16 or any version below 16.
This pull request adds a hint to a solution for this while keeping a newer version of node.
The suggestion is to add a NODE_OPTIONS
environment variable that includes the --openssl-legacy-provider
flag. I tested this with the following package.json file and it worked for me.
{
...
"scripts": {
...
"start": "NODE_OPTIONS=--openssl-legacy-provider webpack-dev-server"
},
...
}
If you want to change the environment variable on Windows you can run this command in the terminal before running npm run start
:
$env:NODE_OPTIONS="--openssl-legacy-provider"
Edit: alternative solution
Same issue on macos. Downgrading to node 16 works.
as it is, it won't run thanks to very outdated dependencies. Maybe simply don't use the bundler at all?