You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Help developers who want it to avoid missing out on warnings.
Help team leaders who want to ensure a certain level of attention to details from their developers, without having to read the build log.
Non-Goals
Change the default behavior
Background
I accidentally read the build log in our server after a while, and saw a few warnings as the one listed below:
For production Image Optimization with Next.js, the optional 'sharp' package is strongly recommended. Run 'npm i sharp', and Next.js will use it automatically for Image Optimization.
I want a way to force my team to avoid missing out on warnings.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Non-Goals
Background
I accidentally read the build log in our server after a while, and saw a few warnings as the one listed below:
I want a way to force my team to avoid missing out on warnings.
I saw #29129, and his last comment:
and couldn't agree more.
Proposal
add
--treatWarningsAsErrors
flag to treat warnings as errorsBeta Was this translation helpful? Give feedback.
All reactions