Giter Site home page Giter Site logo

Comments (2)

SuperLiii avatar SuperLiii commented on June 10, 2024

Okay, okay... think i found out how the problem occurred:

  1. browser try to get file emscripten-module.wasm from http://localhost:5173/node_modules/.vite/deps/emscripten-module.wasm
  2. but the folder node_modules/.vite/deps/ dosen't have this
  3. when i manually copied it over from package quickjs-wasmfile-release-sync, it's works!
  4. that's why webpack can be run success,becase it's will be pack together

But I still don't know why the .wasm file wasn't automatically copied over.that's really strange.

from quickjs-emscripten.

justjake avatar justjake commented on June 10, 2024

Thanks for the issue report.

It's weird because vite build - which is what I was testing - seems to work fine with the default configuration, it's just the dev server that has this resolution issue.

I updated the example in e97f4ae to use newVariant and a Vite URL import. This works with no vite.config.js change or manual copying, in both vite and vite build.

from quickjs-emscripten.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.