-
Notifications
You must be signed in to change notification settings - Fork 27k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Experimental features" warning should be configurable via flag #30913
Comments
This would be super handy. I may want to disable these on a per feature basis rather than swallowing all warnings. Might we do [in pseudo types]: experimental: {
externalDir: true | {
enabled: true,
silent: true,
},
}; |
I'm curious, what's the purpose of disabling the warning? From my perspective, the whole point of the warning is to make it impossible to start the app without an acknowledgement that you're relying on prerelease features. |
I explicitly acknowledged that I was using an "experimental feature" when I wrote the key I don't need to be reminded of that every time the app starts up in both development and production builds. On top of that, we use the I was already hijacking But, from my perspective, it's a useless message cluttering up my terminal, much akin to the "hundreds of packages have audit issues warnings" you wrote about recently. It's irrelevant to my workflow, and it gets printed every time. (On top of that, the particular "experimental" feature I just enabled is the |
My initial feeling is to err on the side of caution and verbosity. One benefit of the verbose console output is it helps the team understand what experimental features folks are currently opting into, which could explain why they're seeing breaking behavior. Without that, it requires another ask to see their Folks who are using experimental features are the early testers we're looking to provide feedback. I wonder if the root issue here is the particular experimental flag should be considered to be moved to the next stage (maybe still opt-in, not on by default) depending on its usage. |
|
What if on the first startup message, there were "shortcodes" for experimental features:
e.g. E = external dirs enabled That might be pushing into "over-optimization" territory and over-complication, but I do agree suppressing these messages would be nice. |
As this seems to be more of a feature request, not an actual bug, I'll convert this to an Idea so the discussion can be continued there. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
What version of Next.js are you using?
11.0 (but applies to all)
What version of Node.js are you using?
N/A
What browser are you using?
N/A
What operating system are you using?
N/A
How are you deploying your application?
N/A
Describe the Bug
If the
next.config.js
file contains a key namedexperimental
, Next.js always prints a warning message on startup, like:There is currently no way to disable this warning.
FWIW I searched the existing issues and discussions, and surprisingly did not see an issue covering this topic yet.
Expected Behavior
The warning should be configurable via some kind of an override flag in
next.config.js
, such as:To Reproduce
next.config.js
fileexperimental
with any known experimental flag, per the Next docsThe text was updated successfully, but these errors were encountered: