-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
Next.js 9 forcibly applies suggested changes to tsconfig.json #8034
Comments
@alexharri Next.js 9's integrated TypeScript support is meant to be as helpful and automatic as possible. Many of the flags applied in this message can be modified -- other are simply requirements that would fail the build otherwise if left omitted. I'm not sure a prompt is warranted here, because answering "No" would just cancel the issued command and not allow you to start or build your application. Do note, you may also freely adjust |
@Timer Stopping the build command might give me the opportunity to make sure my project folder is in a state where I feel confident having tools make automatic changes to my files. Like making sure all my changes are committed and checking out a new branch. Maybe you can add a prompt only when the working dir is not clean? |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
When upgrading to Next.js 9 I received this message:
It's a bit weird that suggested changes are applied without any prompt. Even required modifications to any config file should not be applied without warning.
Wouldn't it make more sense to show a message letting the user know that these changes need to be made instead of forcibly making them for him? Or at least asking before modifying and creating files.
The user is also not informed at all that the
exclude
andinclude
options intsconfig.json
are modified.The text was updated successfully, but these errors were encountered: