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

Uncaught (in promise) TypeError: xxx_bgwasm.__wbindgen_start is not a function #3744

Closed
kurisu994 opened this issue Jul 10, 2023 · 6 comments
Assignees
Labels
feat New feature or request

Comments

@kurisu994
Copy link

System Info

System:
OS: macOS 13.4.1
CPU: (10) arm64 Apple M1 Pro
Memory: 269.05 MB / 32.00 GB
Shell: 5.9 - /bin/zsh

Binaries:
Node: 16.20.1 - /opt/homebrew/opt/node@16/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 9.6.2 - /opt/homebrew/bin/npm
Watchman: 2023.07.03.00 - /opt/homebrew/bin/watchman

Browsers:
Chrome: 114.0.5735.198
Safari: 16.5.1

Details

my project is modernjs+rspack, and wasm is compiled into an npm package with wasm-bindgen. When importing the project, it will directly prompt:
Uncaught (in promise) TypeError: xxx_bgwasm.__wbindgen_start is not a function

I also reported this problem to modernjs, they thought it was a problem with rspack.
4144#

Reproduce link

https://gitee.com/makisek/modern-demo

Reproduce Steps

you just need yarn and yarn dev

@kurisu994 kurisu994 added bug Something isn't working pending triage The issue/PR is currently untouched. labels Jul 10, 2023
@h-a-n-a h-a-n-a removed the pending triage The issue/PR is currently untouched. label Jul 21, 2023
@h-a-n-a h-a-n-a self-assigned this Jul 21, 2023
@h-a-n-a h-a-n-a added this to the Planned milestone Jul 21, 2023
@h-a-n-a
Copy link
Contributor

h-a-n-a commented Jul 24, 2023

I see. This is blocked by the top-level await support of Rspack and asyncWebAssembly support. Currently, we haven't support experiments.asyncWebAssembly yet.

@h-a-n-a h-a-n-a added feat New feature or request and removed bug Something isn't working labels Jul 24, 2023
@stale
Copy link

stale bot commented Sep 22, 2023

This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

@stale stale bot added the stale label Sep 22, 2023
@kurisu994
Copy link
Author

bump

@stale stale bot removed the stale label Sep 22, 2023
@hardfist hardfist removed this from the Planned milestone Oct 6, 2023
@h-a-n-a
Copy link
Contributor

h-a-n-a commented Oct 16, 2023

@ahabhgk What's our plan for top-level await?

@ahabhgk
Copy link
Contributor

ahabhgk commented Oct 17, 2023

This probably a interop problem, not related to TLA, will fix it later

@ahabhgk
Copy link
Contributor

ahabhgk commented Oct 17, 2023

Oh, already fixed, please upgrade to latest version by npx modern upgrade

@ahabhgk ahabhgk closed this as completed Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants