create-wasm-app icon indicating copy to clipboard operation
create-wasm-app copied to clipboard

Feature: Webpack 5

Open DawChihLiou opened this issue 2 years ago • 4 comments

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.

DawChihLiou avatar Mar 01 '23 07:03 DawChihLiou

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?

jameshfisher avatar Mar 04 '23 18:03 jameshfisher

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.

milgner avatar Mar 11 '24 21:03 milgner

@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.

g1hanna avatar May 11 '24 16:05 g1hanna

@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.

LegoGuy32109 avatar Aug 31 '24 21:08 LegoGuy32109