We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.0.5+1bf28e0d77a8b2261befbdb708cefd03e0126960
Linux 5.15.90.1-microsoft-standard-WSL2 x86_64 x86_64
Run bun build index.ts with the following index.ts:
bun build index.ts
import wasmModule from 'pkg/my-wasm.wasm' console.log(wasmModule)
bun build should run successfully and import the .wasm file as an asset as stated in the documentation. https://bun.sh/docs/bundler#content-types
uh-oh: Internal error: missing asset file bun will crash now 😭😭😭
----- bun meta ----- Bun v1.0.5 (1bf28e0) Linux x64 #1 SMP Fri Jan 27 02:56:13 UTC 2023 BuildCommand: Elapsed: 92ms | User: 13ms | Sys: 13ms RSS: 40.92MB | Peak: 28.00MB | Commit: 40.92MB | Faults: 0 ----- bun meta -----
0 0x55cbc418ea1b 1 ??? 2 ??? 3 ??? 4 ??? 5 ??? 6 ??? 7 ??? 8 ??? 9 ??? 10 ??? 11 ??? 12 ???
Search GitHub issues https://bun.sh/issues or ask for #help in https://bun.sh/discord
bun index.ts is running fine, it outputs the resolved absolute path to the wasm file.
bun index.ts
The text was updated successfully, but these errors were encountered:
Duplicate of #3903
Sorry, something went wrong.
No branches or pull requests
What version of Bun is running?
1.0.5+1bf28e0d77a8b2261befbdb708cefd03e0126960
What platform is your computer?
Linux 5.15.90.1-microsoft-standard-WSL2 x86_64 x86_64
What steps can reproduce the bug?
Run
bun build index.ts
with the following index.ts:What is the expected behavior?
bun build should run successfully and import the .wasm file as an asset as stated in the documentation. https://bun.sh/docs/bundler#content-types
What do you see instead?
uh-oh: Internal error: missing asset file
bun will crash now 😭😭😭
----- bun meta -----
Bun v1.0.5 (1bf28e0) Linux x64 #1 SMP Fri Jan 27 02:56:13 UTC 2023
BuildCommand:
Elapsed: 92ms | User: 13ms | Sys: 13ms
RSS: 40.92MB | Peak: 28.00MB | Commit: 40.92MB | Faults: 0
----- bun meta -----
0 0x55cbc418ea1b
1 ???
2 ???
3 ???
4 ???
5 ???
6 ???
7 ???
8 ???
9 ???
10 ???
11 ???
12 ???
Search GitHub issues https://bun.sh/issues or ask for #help in https://bun.sh/discord
Additional information
bun index.ts
is running fine, it outputs the resolved absolute path to the wasm file.The text was updated successfully, but these errors were encountered: