How to debug a specific Gatsby package on build
Clarice Bouwer

Clarice Bouwer @cbillowes

About: Curious programmer sharing byte-sized knowledge on dev.to. Passionate about Git, GCP, TypeScript, Next.js, and DevTools. Enjoys collaborating with others and leading by example.

Location:
Mauritius
Joined:
May 30, 2018

How to debug a specific Gatsby package on build

Publish Date: May 28 '22
6 0

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

Comments 0 total

    Add comment