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

Expected pretty file path to have only forward slashes #15421

Closed
AtherActive opened this issue Nov 26, 2024 · 2 comments
Closed

Expected pretty file path to have only forward slashes #15421

AtherActive opened this issue Nov 26, 2024 · 2 comments
Labels
crash An issue that could cause a crash windows An issue that is known to occur on Windows

Comments

@AtherActive
Copy link

How can we reproduce the crash?

Context: Using NPM workspaces. The package 'web' is where bun build is being run. This package imports another workspace package called spark-engine, specifically an index.js file. The paltform is Windows 11 Home, version 23H2.

Please note that the web package is using React. This should not make a difference, but as it may be relevant I'd prefer to mention it.

  1. Added script 'dev:bun' to package.json of web : bun build src/main.tsx --outfile=dist/index.js --watch --sourcemap --target=node
  2. cd to package
  3. Run above script using bun: bun run dev:bun
  4. In my case, the error posted in the stacktrace occurs.

Relevant log output

Stack Trace (bun.report)

Bun v1.1.34 (5e5e7c6) on windows x86_64 [AutoCommand]

panic: Expected pretty file path to have only forward slashes, got 'C:\Users\Gustavo\Desktop\brisa-example\node_modules\brisa\jsx-runtime\index.js'

Features: Bun.stdin, bunfig, define, external, jsc, tsconfig, tsconfig_paths, tsconfig_paths

Sentry Issue: BUN-6EX

@AtherActive AtherActive added the crash An issue that could cause a crash label Nov 26, 2024
@github-actions github-actions bot added the windows An issue that is known to occur on Windows label Nov 26, 2024
Copy link
Contributor

@AtherActive, the latest version of Bun is v1.1.37, but this crash was reported on Bun v1.1.34.

Are you able to reproduce this crash on the latest version of Bun?

bun upgrade

@AtherActive
Copy link
Author

Welp, I'm an idiot for not updating Bun 🤦‍♀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash An issue that could cause a crash windows An issue that is known to occur on Windows
Projects
None yet
Development

No branches or pull requests

1 participant