Hi,
Need to upgrade all "@microsoft/packagename" in "package.json" to "1.12" instead of "1.11" as 1.11 didn't support Node.js v12 x:
Then delete "node_modules" folder, run "npm install" to redownload and install all the packages:
Then replace the "gulpfile.js" with the code below:
'use strict';
const build = require('@microsoft/sp-build-web');
build.addSuppression(`Warning - [sass] The local CSS class 'ms-Grid' is not camelCase and will not be type-safe.`);
var getTasks = build.rig.getTasks;
build.rig.getTasks = function () {
var result = getTasks.call(build.rig);
result.set('serve', result.get('serve-deprecated'));
return result;
};
build.initialize(require('gulp'));
Then run "gulp serve" it should be working to build the solution.
Thanks
Best Regards
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.