-
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
Managed to run helloworld tuto once,with manual tweaking, then it stops working uncomprehensibly #305
Comments
Trying that last suggestion of letting
(and then 9000 lines of differences, which I find it hard to trust to pull the exact same set of packages) Apparently the user should be instructed to install a specific Here I have node 20. With |
Maybe also the first tutorials could be adjusted not to use webpack, but instead to use a simpler setup with |
Please! Adding webpack only introduces additional issues, questions, and learnings for folks who are not familiar with it as experienced front-end devs. The tutorial should be as stand-alone as possible. I feel the same way with respect to using node for serving the pages. Why not just a bare bones rust-based server like the one from the rust book which folks would already have in their background from learning rust? |
Where in the docs did you come across this?
Followed https://rustwasm.github.io/book/game-of-life/hello-world.html
Describe what about it does not make sense
After a first try at following the tuto and finally managed to get it working without being sure why, and finally breaking it without understanding why either, I restarted from scratch, recording step after step in this repo.
After each step that changes a file under git control I recorded things into git, with
www
recorded as a submodule.At some point, upgrading copy-webpack-plugin to v6 a breaking change pushed me to find a webpack config fix from stackoverflow, and then it worked: the web server did start without error, and my browser was able to get the demo alert.
Note that in my original attempt I did not have to look for that config fix, and had the demo working nevertheless, with some version requirements adjusted.
Now having seen previously that copy-webpack-plugin was at v11 I tried, "why not attempting to go further". As I noted in the last commit, i did not work. I tried a view versions in between, even v7 causing the same issue. So I reverted with the customary
git reset --hard
, to discover that even that state was broken.Suspecting that some state persisting beyond my sight in the gitignored dirs, I went with
git clean -dxf
in both dirs, reranwasm-pack build
in topdir,npm install
inwww
, just to meet the apparently permament:Why does it not make sense?
Even taking into account that now seems to be a moving moment in npm world (but then, are there any stable ones?) , instructions have a reproducibility issue. Newcomers should be able to reach the end of the first tutorial without such problems.
How could we improve it?
Point to a public git repo where a reproducible sequence of instructions can run the project?
Give instructions to use the contents of
package-lock.json
as they are (they apparently match a state that did work for someone), withoutnpm
being allowed to change that?The text was updated successfully, but these errors were encountered: