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

missing asset file crash on bun build with wasm file #6437

Closed
happy-turtle opened this issue Oct 12, 2023 · 1 comment
Closed

missing asset file crash on bun build with wasm file #6437

happy-turtle opened this issue Oct 12, 2023 · 1 comment
Labels
bug Something isn't working crash An issue that could cause a crash wasm Something that related to WASM or WASI support

Comments

@happy-turtle
Copy link

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:

import wasmModule from 'pkg/my-wasm.wasm'

console.log(wasmModule)

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.

@happy-turtle happy-turtle added the bug Something isn't working label Oct 12, 2023
@Electroid Electroid added crash An issue that could cause a crash wasm Something that related to WASM or WASI support labels Oct 12, 2023
@Jarred-Sumner
Copy link
Collaborator

Duplicate of #3903

@Jarred-Sumner Jarred-Sumner marked this as a duplicate of #3903 Dec 5, 2023
@Jarred-Sumner Jarred-Sumner closed this as not planned Won't fix, can't repro, duplicate, stale Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working crash An issue that could cause a crash wasm Something that related to WASM or WASI support
Projects
None yet
Development

No branches or pull requests

3 participants