-
Notifications
You must be signed in to change notification settings - Fork 409
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
Npm package for version 0.10.0 does not work at all on Windows #1038
Comments
I can confirm this problem. |
Same thing happening here, on archlinux |
Any updates? Still stuck on 0.9.1 with the security vulnerability until this is solved. |
It looks like this issue is a duplicate of #1026 (so maybe this one should be closed). There is some more discussion about possible workarounds and causes in that issue (something about Perl, strangely?). Pinging @amrbashir @mztikk @Rizary @Boslx @janpio @celsobonutti @TimoWilhelm who all gave their 👍 to this issue, you might also want to 👍 #1026. |
@Keavon It's not a duplicate. This issue is about the npm package (which uses precompiled binaries). That issue is about compiling wasm-pack from source. |
@Pauan Ah, thanks for clarifying! I would assume that this issue is due to that issue, at least? Regardless, since that one at least has a workaround, this one should be a higher priority. @drager mentioned in #1024 that he added |
@Pauan Sorry for my confusion, do you mean the npm package, during installation, downloads from that link on GitHub, specifically Based on your better understanding of the problem than me, can you think of some steps forward that we as a community could take to debugging this and submitting a PR? |
Yes, it downloads the package from the releases page. This is the code which does that. It does not download the It correctly installs the It also correctly installs the All of that works identically to version 0.9.1, so it seems the problem is something in binary-install. The error is caused by this code in binary-install. That code didn't exist in version 0.9.1. I don't know why that is failing, but that's as far as my investigation went. |
Unfortunately I don't run Windows myself, so quite hard for me to debug this... But I'll see if I can get a VM with Windows running and try. I installed @celsobonutti You said it didn't work on arch linux, however, is this the same issue or some other issue? |
@drager I'd be happy to jump on a Discord call with you and we can pair debug it on my Windows machine if you're interested. |
Thanks for offering! But I managed to get a VM running with Windows 10 on my Linux machine. I did a quick investigation and I could reproduce it. One thing I noticed is that if you run However, by removing this check https://github.com/EverlastingBugstopper/binary-install/blob/main/packages/binary-install/index.js#L76-L78 in my Meaning the bug seems the be that check only ☝️i.e. buggy |
@drager I'm not sure if it's the same cause, but I do get the exact same problem/message. Using 0.9.1 solves it, though. |
I just published https://www.npmjs.com/package/wasm-pack/v/0.10.1 that hopefully will work fine on Windows. Please let me know if it does or doesn't. 🙏 |
Looking good, for me at least!
|
@drager Works for me, thanks! |
This problem has resurfaced in 0.10.3 but downgrading to 0.10.1 works. Windows 11 10.0.22000 Build 22000 |
🐛 Bug description
Version 0.10.0 of the npm package is completely broken on Windows.
Previous versions of wasm-pack worked correctly.
It also works correctly on Linux, this is a Windows-only regression.
This completely breaks the Rollup plugin (on Windows).
🤔 Expected Behavior
It should work correctly.
👟 Steps to reproduce
wasm-pack
npm library:yarn install
yarn build
You will see the following error:
The important line is this:
It seems that version 0.10.0 is not installing wasm-pack automatically (like how it should). Perhaps this is a regression in binary-install?
🌍 Your environment
Include the relevant details of your environment.
wasm-pack version: 0.10.0
rustc version: 1.55.0-nightly (32c9b7b09 2021-07-21)
The text was updated successfully, but these errors were encountered: