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

Astro dev exits with code 1: Expected argument jsonString to be a string, got object #17022

Open
chribjel opened this issue Feb 3, 2025 · 0 comments
Labels
bug Something isn't working confirmed bug We can reproduce this issue

Comments

@chribjel
Copy link

chribjel commented Feb 3, 2025

What version of Bun is running?

1.2.2+c1708ea6a

What platform is your computer?

Linux 5.15.123.1-microsoft-standard-WSL2 x86_64 x86_64

What steps can reproduce the bug?

  1. bun create astro@latest
  2. use docs template
  3. bun install
  4. bun --bun run dev

Or use this repro-repo: https://github.com/chribjel/astro-bun-test

What is the expected behavior?

It should work

What do you see instead?

$ bun --bun run dev
$ astro dev
Expected argument `jsonString` to be a `string`, got `object`
  Location:
    /home/chribjel/documents/other/astro-bun-test/node_modules/@expressive-code/core/dist/index.js:2535:15
  Stack trace:
    at stripJsonComments (/home/chribjel/documents/other/astro-bun-test/node_modules/@expressive-code/core/dist/index.js:2535:15)
    at <anonymous> (/home/chribjel/documents/other/astro-bun-test/node_modules/@astrojs/starlight/integrations/expressive-code/theming.ts:25:53)
    at <anonymous> (/home/chribjel/documents/other/astro-bun-test/node_modules/@astrojs/starlight/integrations/expressive-code/index.ts:93:18)
    at processTicksAndRejections (native:7:39)
error: script "dev" exited with code 1

Additional information

No response

@chribjel chribjel added bug Something isn't working needs triage labels Feb 3, 2025
@pfgithub pfgithub added confirmed bug We can reproduce this issue and removed needs triage labels Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working confirmed bug We can reproduce this issue
Projects
None yet
Development

No branches or pull requests

2 participants