Parcel error handling masks genuine issues #36371
Labels
status: confirmed
Issue with steps to reproduce the bug that’s been verified by at least one reviewer.
topic: TypeScript
Issues and PRs related to TS in general, public typings or gatsby-plugin-typescript
type: bug
An issue or pull request relating to a bug in Gatsby
Preliminary Checks
Description
This part of the code tries to compile the gatsby-config and seemingly sense check it.
gatsby/packages/gatsby/src/utils/parcel/compile-gatsby-files.ts
Lines 114 to 119 in 0ee492c
There is a problem that it disregards any errors it receives. This caused a lot of confusion where out
gatsby-config.ts
file was doing something like:Instead of logging sensible messages, we get the dreaded:
Error: EBUSY: resource busy or locked, unlink 'C:\Users\...\.cache\.parcel-cache\data.mdb'
.Reproduction Link
https://github.com/gatsbyjs/gatsby/
Steps to Reproduce
gatsby dev
...
Expected Result
A clear error message that highlights the problem better (that the gatsby-config.ts threw an error)
Actual Result
Error: EBUSY: resource busy or locked
error message, which is very misleadingEnvironment
Config Flags
No response
The text was updated successfully, but these errors were encountered: