Pages

Tuesday, November 1, 2022

Warnings messages lead to fail the SharePoint Framework build process

Problem Background

I was trying to build a SPFx solution using the command gulp bundle --ship.
I was getting lot of warning and the build is getting failed. Image attached below.



Solution
Instruct the gulp to ignore the warnings when building the solution. 
For that you have to add build.addSuppression(/Warning/gi);in gulpfile.js









No comments:

Post a Comment