Skip to content

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

@bnheise

Description

@bnheise

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions