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

Bug(deno): astro build error - Buffer is not defined #27693

Open
Indyandie opened this issue Jan 16, 2025 · 2 comments
Open

Bug(deno): astro build error - Buffer is not defined #27693

Indyandie opened this issue Jan 16, 2025 · 2 comments
Labels
needs investigation requires further investigation before determining if it is an issue or not node compat

Comments

@Indyandie
Copy link

Version: Deno 2.1.4


I'm using the deno runtime with starlight, and after upgrading to astro 5 I've started getting build errors when using starlight-openapi.

16:26:50 ▶ starlight-openapi/components/Route.astro
16:26:50   ├─ /api/pokeapi/index.htmlBuffer is not defined

To Reproduce

  1. clone https://github.com/Indyandie/lucero/tree/build-bug-2025-01-03
  2. run deno install --allow-scripts
  3. run deno task build

System Info

  • NixOS
  • deno 2.1.4
  • astro 5.1.7

Related: HiDeoo/starlight-openapi#61

@bartlomieju bartlomieju added needs investigation requires further investigation before determining if it is an issue or not node compat labels Jan 20, 2025
@kt3k
Copy link
Member

kt3k commented Jan 28, 2025

For a temporary solution, you can avoid the error by adding the below settings to deno.json:

{
  ...,
  "unstable": [
    "node-globals"
  ]
}

@Indyandie
Copy link
Author

Thank you @kt3k ! 🙇 That did the trick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs investigation requires further investigation before determining if it is an issue or not node compat
Projects
None yet
Development

No branches or pull requests

3 participants