Git Product home page Git Product logo

Comments (4)

jtpio avatar jtpio commented on June 12, 2024

we are facing the problem that xeus_lua.js it not found

This part seems to be because xeus_lua.js is not in lib and webpack doesn't find it. So we can reintroduce the copy-files script make sure they are.

Do we need to change the import statement?

Also the wasm file seems to be defined in the emscripten generated file like this:

image

Ideally webpack should be able to find it, so it can generate a URL to the asset automatically (with the public path).

I'm continuing in #6.

from xeus-lua-kernel.

DerThorsten avatar DerThorsten commented on June 12, 2024

bevore I jused the CopyPlugin for the wasm file. Since webpack only looks for imports it is not touching the xeus_lua.wasm string. (since there is nothing like import 'xeus_lua.wasm' )
https://github.com/DerThorsten/jupyterlite/blob/65762755e33aa661a5f46f037eefb1c347aac06a/app/webpack.config.js#L268

from xeus-lua-kernel.

jtpio avatar jtpio commented on June 12, 2024

Yes maybe we'll have to use the same approach for now.

Ideally we can find a way to tell webpack to find this wasm file, so it places it along the others under labextension/static, and is able to locate it via a URL such as /lab/extensions/@jupyterlite/xeus-lua/static/12345.wasm (since the extension will be loaded as a federated module).

from xeus-lua-kernel.

jtpio avatar jtpio commented on June 12, 2024

I renamed the issue to "Bundle the wasm file" so we can come back to how to best handle the copy of the wasm file later.

from xeus-lua-kernel.

Related Issues (9)

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.