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

Import is not working #2503

Open
eramax opened this issue Dec 22, 2022 · 2 comments
Open

Import is not working #2503

eramax opened this issue Dec 22, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@eramax
Copy link

eramax commented Dec 22, 2022

Describe the bug
I would like to run react app using boa engine, first I tried to import a package like d3 and found there is an bug, may be the import feature is not ready yet.

To Reproduce

import d3Js from 'https://d3js.org/d3.v3.min.js';

Expected behavior
expected to run without an error, and to see the wasm playground loaded through network the d3 package.
but I received this error

Uncaught "SyntaxError": "unexpected token 'import', primary expression at line 1, col 1"

Build environment (please complete the following information):

@eramax eramax added the bug Something isn't working label Dec 22, 2022
@jedel1043
Copy link
Member

Yeah, the module system is a WIP. See #2411 for updates.

@jedel1043
Copy link
Member

This is technically solved by #2922, but the playground won't fetch modules from the web. I'm working on an example on how to asynchronously fetch modules using the new modules API, so we could easily integrate that into our wasm playground.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: To do
Development

No branches or pull requests

2 participants