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

App fails to run with production build: Incorrect response MIME type for wasm #40

Open
bnheise opened this issue Aug 10, 2022 · 0 comments

Comments

@bnheise
Copy link

bnheise commented Aug 10, 2022

This application fails to run. Instead, we get the following error output in the browser console:

Uncaught (in promise) TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.

Steps to reproduce:

  1. git clone https://github.com/yewstack/yew-wasm-pack-template.git
  2. yarn install
  3. yarn build
  4. cd dist
  5. serve

Open the app in the browser, open dev tools, view the error message.

@bnheise bnheise changed the title App fails to run: Incorrect response MIME type for wasm App fails to run with production build: Incorrect response MIME type for wasm Aug 10, 2022
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

1 participant