Skip to content

compile: missing asset file (hard to debug) #3903

@janwilmake

Description

@janwilmake

What version of Bun is running?

0.7.1

What platform is your computer?

Darwin 21.6.0 arm64 arm

What steps can reproduce the bug?

compile a big codebase, for some reason, it gives "missing asset file" for me.

What is the expected behavior?

I get a stack trace or something that would tell me what exactly is missing and where

What do you see instead?

Just "missing asset file" is not good enough for me to solve the problem

Additional information

bun-server bun run build
$ bun build ./src/server.ts --compile --outfile server

uh-oh: Internal error: missing asset file
bun will crash now 😭😭😭

----- bun meta -----
Bun v0.7.1 (53cc4df1) macOS Silicon 21.6.0
BuildCommand: 
Elapsed: 137ms | User: 287ms | Sys: 95ms
RSS: 0.34GB | Peak: 0.34GB | Commit: 0.41GB | Faults: 0
----- bun meta -----

0   0x102042b4c WTFGetBacktrace
1   ??? Bun__crashReportDumpStackTrace

Crash report saved to:
 ~/.bun/.bun-crash/v0.7.1-1690787568648.crash

Search GitHub issues https://bun.sh/issues or ask for #help in https://bun.sh/discord

thread 1236859 panic: Internal error: missing asset file
error: script "build" exited with code 6 (SIGABRT)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbundlerSomething to do with the bundler

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions