SPFx – resolving error – TSLint is not supported for rush-stack-compiler-4.x package
Today new issue and resolution !!!
Details / Background :
In one of our SPFx last article – SPFx – Using PnPjs version 3 : Resolving error – Error – [tsc] node_modules/@pnp/queryable/queryable.d.ts(10,115): error TS1005: ‘,’ expected we discussed about Microsoft rush stack compiler and updated the latest version of it
Next we have updated tsconfig.js file to refer latest version of Microsoft rush stack compiler as
As we updated and did gulp build got an error
Error / Issue :
TSLint is not supported for rush-stack-compiler-4.x package
Solution / Cause of an issue :
- We are using pnpjs library version 3
- We are using rush stack compiler version 4.2
- We are having type script version – 4.2.4
- TypeScript version 4+ not supports the tslint. TSLint is deprecated
- Since TSLint is deprecated we need to disable the TSLint task in gulpfile js
build.tslintCmd.enabled = false;
After disabling TSLint in gulp file – gulpfile.js we did again gulp build and it succeeded.
Thanks for reading !!! Feel free for suggestion / question / thoughts
HAVE A GREAT TIME AHEAD !!!
You must log in to post a comment.