Skip to content
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 run start throws: Error: invalid type: sequence, expected a string at line 5 column 11 #1420

Open
haai opened this issue Aug 15, 2024 · 1 comment

Comments

@haai
Copy link

haai commented Aug 15, 2024

πŸ› Bug description

I am try to compile the webpack wasm-pack project and then I get an Rust-Compilation Error:

βœ…  Your crate has been correctly compiled

10% building 0/3 entries 3/3 dependencies 0/3 modulesError: invalid type: sequence, expected a string at line 5 column 11
Caused by: invalid type: sequence, expected a string at line 5 column 11

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

@kpreid
Copy link

kpreid commented Dec 30, 2024

I am seeing the same cryptic error, but with different circumstances and timing, and not using npm at all:

$ wasm-pack build --target web --out-dir <path> --dev <path>
[INFO]: 🎯  Checking for the Wasm target...
[INFO]: πŸŒ€  Compiling to Wasm...
    Blocking waiting for file lock on package cache
    Finished `dev` profile [optimized + debuginfo] target(s) in 0.08s
Error: invalid type: sequence, expected a string at line 4 column 19
Caused by: invalid type: sequence, expected a string at line 4 column 19

It occurs randomly, in that if I rerun the same command it will succeed. This isΒ with wasm-pack 0.13.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants