Summoning binary
Gradient background

How to debug a specific Gatsby package on build

Clarice Bouwer

Software Engineering Team Lead and Director of Cloudsure

Sunday, 29 May 2022 · Estimated 1 minute read

Originally posted on dev.to

I got an error and needed to get verbose logs for a particular package during a Gatsby build.

I came across this issue on GitHub with reference to a DEBUG env var that can be set to get better logs.

Copy
DEBUG=gatsby:gatsby-plugin-sharp npm run build

Subscribe to my newsletter

Get notified monthly about any new articles, tutorials, and courses. I promise to keep the emails short and sweet, and never spam you.

By signing up you acknowledge the Privacy Policy. Please keep an eye out in your junk/spam folder for the confirmation email.