How to debug a specific Gatsby package on build

cbillowes

Clarice Bouwer

Posted on May 28, 2022

How to debug a specific Gatsby package on build

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.

DEBUG=gatsby:gatsby-plugin-sharp npm run build
Enter fullscreen mode Exit fullscreen mode
💖 💪 🙅 🚩
cbillowes
Clarice Bouwer

Posted on May 28, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related