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

Cannot work with vite 5.2.11 error : CompileError: WebAssembly.instantiate(): expected magic word 00 61 73 6d, found 3c 21 44 4f @+0 #33

Closed
bcahlit opened this issue May 25, 2024 · 3 comments

Comments

@bcahlit
Copy link

bcahlit commented May 25, 2024

Modify the package.json in the example to the following:

{
"name": "vite-plugin-wasm-pack-example"
"version": "1.0.0"
"type": "module"
"license": "MIT"
"devDependencies": {
"vite": "^ 5.2.11",
"vite-plugin-wasm-pack": "^ 0.1.12"
}
"scripts": {
"wasm": "wasm-pack build. / my-crate-target web"
"dev": "vite"
"build": "vite build"
}
}

run:

npm install && npm run dev

  VITE v5.2.11  ready in 272 ms

  ➜  Local:   http://localhost:5173/
  ➜  Network: use --host to expose
  ➜  press h + enter to show help

Unable to appear pop-up alert

view wasm file :'http://localhost:5173/assets/my_crate_bg.wasm' is equal 'http://localhost:5173'

@michaelangeloio
Copy link

same here

@emnul
Copy link

emnul commented Jul 31, 2024

Not sure why this issue was closed? The plugin is still broken for me using vite v5

@nshen
Copy link
Owner

nshen commented Aug 1, 2024

Hi, I am not using vite and wasm anymore see #34 could somebody help to review ?

Not sure why this issue was closed? The plugin is still broken for me using vite v5

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

4 participants