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

Expected 'application/wasm' #10

Closed
1 of 3 tasks
alanpoon opened this issue Dec 5, 2019 · 2 comments
Closed
1 of 3 tasks

Expected 'application/wasm' #10

alanpoon opened this issue Dec 5, 2019 · 2 comments

Comments

@alanpoon
Copy link

alanpoon commented Dec 5, 2019

General Information

  • Bug
  • Improvement
  • Feature
  • [ X] Other

Description
TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.

It seems like I cannot instantiate webassemby streaming and I do not know how to add the mime type to the server.

Versions

  • react:16.8.3
  • react-wasm: 1.01
  • browser: chrome Version 76.0.3809.132 (Official Build) (64-bit)
  • expo: ^34.0.1
@dwebfan
Copy link

dwebfan commented Apr 16, 2021

I found similiar issue with the example codes. Can you tell me how you solve it?

@alanpoon
Copy link
Author

I don't think I am using react-wasm, I am using webpack.config. wasm-tool/wasm-pack-plugin#67

I compile wasm into a npm package first, then import in react. You can refer to scs/substrate-api-client#48 (comment)

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