-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Gulp bundle command exit with code '1' for eslint warnings #9165
Comments
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible. |
This is related to an IcM incident that user is using Teams Toolkit to deploy SPFx but failed. The root cause is that there's eslint error in user's customized code and when user deploy with TTK, TTK will run User is complaining that it shouldn't block since it's displayed as warning. It's quite misleading for customers. |
Interesting. So yes, by default, linter warnings are treated as build-blocking errors when running in There's a few things the user can do here: Best solutions:
Less ideal solutions:
Solutions that work but are not recommended:
However, I will say this is default behavior that we are not planning to change. |
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues |
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
Windows
What browser(s) / client(s) have you tested
Additional environment details
Describe the bug / error
gulp bundle failed with exit code 1 even if there's only eslint warnings.
Steps to reproduce
gulp bundle --ship --no-color
after npm installExpected behavior
The behavior should be aligned: if eslint errors are printed as warning, exit code should be 0; if eslint errors are printed as error, exit code should be 1.
The text was updated successfully, but these errors were encountered: