Astro Info
Astro v5.13.0
Node v20.19.1
System Linux (x64)
Package Manager npm
Output static
Adapter @astrojs/node
Integrations none
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
When running astro dev, live content collections types are being removed from .astro/types.d.ts.
The workaround is run astro dev and then run astro sync in another terminal.
To reproduce:
- Run
npm run dev.
- In another terminal, open the generated types:
open .astro/types.d.ts.
- Confirm that the
/// <reference path="content.d.ts" /> is missing.
- Run
npm run sync.
- The content types reference will be present now.
What's the expected result?
When running astro dev, live content collections types should be generated correctly, without the need of running an external command.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/astro-content-zod-import-bug
Participation
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
When running
astro dev, live content collections types are being removed from.astro/types.d.ts.The workaround is run
astro devand then runastro syncin another terminal.To reproduce:
npm run dev.open .astro/types.d.ts./// <reference path="content.d.ts" />is missing.npm run sync.What's the expected result?
When running
astro dev, live content collections types should be generated correctly, without the need of running an external command.Link to Minimal Reproducible Example
https://stackblitz.com/edit/astro-content-zod-import-bug
Participation