-
Notifications
You must be signed in to change notification settings - Fork 234
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
React wasm example not compiling #394
Comments
No need to try to fix it yet, just wondering if it worked for you :). |
Tried it just now (using develop), still working for me : ) |
Strange. Is the file nym_client_wasm_bg.js there in your node modules at the path indicated? If not, maybe we can narrow down the problem to whatever is trying to load it in my machine but not load it on your machine (eg probably a software version difference). |
So I've tested it in both windows and linux (WSL2) environments with the following:
Linux:
and then with
The windows run had no issues, both linux runs failed with the same error described above. |
Downgrading npm on linux to the same version that's on windows did not fix issue either. |
I was trying out the webassembly examples, js worked great, but react not so. I figured I'd add my experience to the issue. Maybe it helps. (I am testing on System:
Where do these come from? It turns out react-example: js-example: And looking at {
"files": [
"nym_client_wasm_bg.wasm",
"nym_client_wasm.js",
"nym_client_wasm.d.ts",
"LICENSE_APACHE"
]
} These files were never properly published to npm. |
This is an issue with The two work-arounds from the original issue, were I would be happy for an updated npm package supporting 0.8.1 so I can experiment with it a bit more. |
Hey, thanks for the research here @ethanfrey, we were wondering what was going on. @jstuczyn I can see that you've done quite a bit of work in the webassembly client to get it ready for 0.9.x - is there a natural place I can grab a 0.8.1 to publish with the files included? It seems like the |
I've published a new 0.8.1 wasm client package to NPM. It seems to do the trick. @ethanfrey we will include the fixes for this in the next release, but for the moment if you want to try things out, you can do:
For me, that works as a temporary fix so that the React example runs. |
Nice one. Thank you. Yeah, happy to edit a line or two on those js apps. I was playing with them anyway to learn |
I spent a bit of time tonight to fix up some JavaScript security vulnerabilities (they're only in example code, not our real code, but it's nice to keep things up to date). That's in #393.
I had a look at the React example to see if it was still running, but it doesn't work. It gives this message after
npm install && npm start run
:What's strange about it is that the overall package is in fact there, it's just got that one file missing.
@jstuczyn I think you said you had tried this out and that it was working - does it work for you on current
develop
? I've gone back to some previous versions, results as follows:The text was updated successfully, but these errors were encountered: