Gulp serve error - No valid rules for TypeScript files
-
08-02-2021 - |
Question
I received the error message
below when I tried to run gulp serve
on a tile web part that I got from a starter kit from https://github.com/SharePoint/sp-starter-kit/issues/131
UPDATE:
I followed the solution on this question: Updating SPFX breaks gulp It got rid of the error message above. I then followed the direction of the first question below by Jerry_MSFT and:
- made sure
npm outdated -g
wasn't throwing any mismatches - I updated my
Node.js
andSPFX
Then I found I had more errors, so I installed gulp 3.9.1
, I installed the latest node-gyp
, and made sure my npm in my 'Program files' was up-to-date
Now I only have one error, Error - [tslint] No valid rules have been specified for TypeScript files. Here is the error on the workbench:
Solution 2
This article gave me a successful gulp serve
and no more error!
Replace your tslint and tsconfig files with the ones on this page