Option to suppress JIT preview warnings in build log. #4017
-
I understand the well meaning intent but when I'm running my dev server(nextjs) my terminal window is getting spammed on every compilation event with preview warnings relating to having the JIT mode enabled: It's not a major but it's getting in the way of seeing & addressing more important build messages. It also just seems unnecessary to throw the warning more than once. That said, I was an early adopter of JIT and it's one hell of an improvement to compile times and overall dev experience. Bravo team! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Never mind, looks like the multiple warnings were being spammed because of react-hot-loader. In my _app.jsx file setting the I can live with getting a full log of warnings when I run a local build for now. For anyone else who needs it: CustomApp.defaultProps = {
warnings: false
}; |
Beta Was this translation helpful? Give feedback.
Never mind, looks like the multiple warnings were being spammed because of react-hot-loader.
In my _app.jsx file setting the
warnings
prop tofalse
on myCustomApp
component achieves the result I was looking for where the warning is only shown once when I launch the dev server.I can live with getting a full log of warnings when I run a local build for now.
For anyone else who needs it: