create-wasm-app
create-wasm-app copied to clipboard
Feature: Webpack 5
This PR resolves the bug reports on the Node.js OpenSSL error 0308010c:digital envelope routines::unsupported with Node 17+.
There are a few ways to fix the error when running Webpack dev server and the most sensible solution is to upgrade Webpack to version 5.
Came here with the same error (0308010c:digital envelope routines::unsupported) and was going to suggest the same fix. It looks like someone else suggested the same fix back in 2020.
@fitzgen @ashleygwilliams can you merge one of these?
Just encountered this as well... I also bumped the version of the copy-webpack-plugin to ^12.0.0 which changes the constructor in webpack.config.js to read new CopyWebpackPlugin({patterns:["index.html"]}).
Afterwards the Rust-WASM tutorial worked as described again.
@DawChihLiou Thank you for making this PR! The changes here completely fixed the tutorial for me. I was originally getting the same digital envelope routines mentioned earlier in this thread. Can verify that the changes still work.
@DawChihLiou Thank you again, the changes fixed the tutorial for me as well. Tried this on a laptop and desktop and it worked both times.