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

Feature: Webpack 5 #208

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

DawChihLiou
Copy link

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.

@jameshfisher
Copy link

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?

@milgner
Copy link

milgner commented Mar 11, 2024

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.

@g1hanna
Copy link

g1hanna commented May 11, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants