-
Notifications
You must be signed in to change notification settings - Fork 439
npm run start throws: Error: invalid type: sequence, expected a string at line 5 column 11 #1420
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
Comments
I am seeing the same cryptic error, but with different circumstances and timing, and not using npm at all:
It occurs randomly, in that if I rerun the same command it will succeed. This isΒ with wasm-pack 0.13.1. |
I am experiencing this too. |
This appears to be caused by a race condition. I can reproduce it reliably with a command like A quick hack to fix it is wrapping all calls to #!/bin/sh
XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR:-"/run/user/$UID"}"
exec flock "$XDG_RUNTIME_DIR/wasm-pack-lock" "${CARGO_HOME:-"$HOME/.cargo"}/bin/wasm-pack" "$@" |
I tried this and it works for me! |
This is caused by a line in Evidently, there are three bugs here:
Thereβs also the more concerning issue of how this obviously-wrong code path ended up in codebase to begin with. Did nobody think to test it once? At any rate, I have the following suggestions:
|
i tried to do that in this commit maciejhirsz/kobold@4b18a83 but it still gave the error |
heya! |
Add a very ugly workaround for rustwasm/wasm-pack#1420
@ZabelTech Thank you for the PR, verified working here! π Unfortunately, since I'm using wasm-pack in a build pipeline, it's not practical to build it on demand. I was able to get a successful build with the even messier hack:
Obviously this wouldn't work if you're using wasm-pack to publish, but since I'm just building, the contents of package.json don't actually matter. |
Add a very ugly workaround for rustwasm/wasm-pack#1420
Add a very ugly workaround for rustwasm/wasm-pack#1420
π Bug description
I am try to compile the webpack wasm-pack project and then I get an Rust-Compilation Error:
But there is no good information where this error is coming from.
Do you know a way how to tackle this down?
Guess there is an issue with wasm-bindgen?
π€ Expected Behavior
Compilation successful.
wasm-pack build
works fine.π Steps to reproduce
unkown .. just run "npm run start".
π Your environment
wasm-pack 0.13.0
The text was updated successfully, but these errors were encountered: