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

Bun.build fails with css path not being the last in the entrypoints array #17032

Open
Valle12 opened this issue Feb 4, 2025 · 0 comments
Open
Assignees
Labels
bundler Something to do with the bundler crash An issue that could cause a crash css CSS parser, bundler-related runtime

Comments

@Valle12
Copy link

Valle12 commented Feb 4, 2025

How can we reproduce the crash?

Checkout the repo: https://github.com/Valle12/bun-issue2
There is an indexSuccess.ts, which works correctly with "bun indexSuccess.ts" and then there is also indexFail.ts, which will fail bun with "bun indexFail.ts". The only difference is the order of the entrypoints.

Relevant log output

Stack Trace (bun.report)

bun indexFail.ts

Bun v1.2.2 (c1708ea) Windows x64
Windows v.win10_fe
CPU: sse42 avx avx2
Args: "C:\Users\Valentin\AppData\Local\Microsoft\WinGet\Packages\Oven-sh.Bun_Microsoft.Winget.Source_8wekyb3d8bbwe.\bun-windows-x64\bun.exe" "indexFail.ts"
Features: jsc tsconfig
Builtins: "bun:main"
Elapsed: 41ms | User: 0ms | Sys: 0ms
RSS: 0.16GB | Peak: 0.16GB | Commit: 0.24GB | Faults: 38644

panic(thread 12312): index out of bounds: index 1, len 1
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

@Valle12 Valle12 added the crash An issue that could cause a crash label Feb 4, 2025
@RiskyMH RiskyMH added bundler Something to do with the bundler css CSS parser, bundler-related labels Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bundler Something to do with the bundler crash An issue that could cause a crash css CSS parser, bundler-related runtime
Projects
None yet
Development

No branches or pull requests

3 participants