Component filename missing from error message during build #5733
Labels
- P2: nice to have
Not breaking anything but nice to have (priority)
feat: errors
Related to error handling / messages (scope)
What version of
astro
are you using?1.8.0
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
Windows
Describe the Bug
When an error occurs while rendering a page during
npm run build
, the filename of the component in which the error occurs is missing.In live preview I see this:
In the build log, I see this:
I'm not sure how to repro this in Stackblitz because I can't run
npm run build
separately there (or at least, I don't know how). All you need to do is throw an error from inside a component.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-e4puyr?file=src/components/Card.astro
Participation
The text was updated successfully, but these errors were encountered: