question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

webpack 5: '.wasm' is missing loader

See original GitHub issue

Bug report

webpack 5 is missing ‘.wasm’ loader shown in this console report image

What is the current behavior? webpack 4 do just fine parse the wasm but somehow webpack 5 unable to parse ‘.wasm’ because missing loader

If the current behavior is a bug, please provide the steps to reproduce. run the yarn start and press the “click me” its will show the error in inspector. i using the webpack 5

What is the expected behavior?

https://github.com/eisenhaus335/wasm-showcase Other relevant information: webpack version: 5.0.0-beta.13 Node.js version: v12.6.1 Operating System: Ubuntu 19.10 Additional tools: yarn

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
Pauancommented, Apr 29, 2020
2reactions
alexander-akaitcommented, Apr 27, 2020

Yes, i think we should improve an error message

/cc @sokra

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I make webpack embed my *.wasm for use in a web ...
Webpack native wasm-loading doesn't seem to allow inlining the wasm file. We can try to use a regular raw-loader: // in module.rules {...
Read more >
To v5 from v4 - webpack
This guide aims to help you migrating to webpack 5 when using webpack directly. If you are using a higher level tool to...
Read more >
wasm-loader - npm
Webpack loader for WASM. Latest version: 1.3.0, last published: 5 years ago. Start using wasm-loader in your project by running `npm i ...
Read more >
Without a Bundler - The `wasm-bindgen` Guide
This example shows how the --target web flag can be used load code in a browser directly. For this deployment strategy bundlers like...
Read more >
CPP to WASM Webpack Loader - Awesome JS
Possible to ship complete WASM bundle with ASMJS fallback in a single js file with zero xhr requests. The only C/C++ webpack loader...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found