-
Notifications
You must be signed in to change notification settings - Fork 211
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
Tutorial has vulnerability warnings and, after fixing those, fails at npm run start
.
#295
Comments
I managed to start the tutorial by installing the latest versions of all packages in "devDependencies": {
"copy-webpack-plugin": "^11.0.0",
"hello-wasm-pack": "^0.1.0",
"webpack": "^5.88.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^4.15.1"
} Then I had another warning prompting me to enable webassembly, so I went to edit the module.exports = {
// rest of the config ommited
experiments: { asyncWebAssembly: true },
};
|
Thanks @jcespinoza . I want to add that I had to do the additional step of updating the argument to from: plugins: [new CopyWebpackPlugin(["index.html"])], to: plugins: [new CopyWebpackPlugin({ patterns: ["index.html"] })], My resulting dependencies in "devDependencies": {
"copy-webpack-plugin": "^11.0.0",
"hello-wasm-pack": "^0.1.0",
"webpack": "^5.88.1",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^4.15.1"
} |
So it seems that the necessary code to get started is: (this works in zsh for sure)
|
I'm following the tutorial at https://rustwasm.github.io/docs/book/game-of-life/hello-world.html and get as far as the
npm run start
command where I get errors. The only divergence from the instructions were:After the
wasm-pack build
command, I got the following warnings:So, I run
npm audit
as requested:That fixes the vulnerability warning, but the
npm run start
command fails with error:So, obviously, if I had not attempted to fix the vulnerabilities, it might have "worked" but I'm far enough beyond my depth to not know how to evaluate that risk.
My environment is Pop!_OS 20.04 LTS (an Ubuntu variant).
npm --version
returns "6.14.4." I'm not sure what other context would be helpful.The debug log mentioned in the error message above is attached:
debug.log
The text was updated successfully, but these errors were encountered: