my generated project tslint.json has node_modules/@nrwl/schematics/src/tslint but con't find this file in node_modules/@nrwl/schematics/src directory !
{
"rulesDirectory": [
"node_modules/codelyzer",
"node_modules/@nrwl/schematics/src/tslint"
]
}
The rules directory property points to an array of directories, not to files. You should have the "node_modules/@nrwl/schematics/src/tslint" directory present. If you don't, please reinstall your node modules.
If the directory is misconfigured, you should see an error that will look like this:
Failed to load /private/tmp/nx/proj/apps/myapp/tslint.json: Could not find custom rule directory: node_modules/@nrwl/schematics/src/tslint
@vsavkin freshly reinstalled node_modules. There is no such a directory as "node_modules/@nrwl/schematics/src/tslint".
Angular CLI: 8.2.0
Node: 10.15.3
OS: win32 x64
Angular: 8.2.0
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
@angular-devkit/architect 0.802.0
@angular-devkit/build-angular 0.802.0
@angular-devkit/build-optimizer 0.802.0
@angular-devkit/build-webpack 0.802.0
@angular-devkit/core 8.2.0
@angular-devkit/schematics 8.2.0
@ngtools/webpack 8.2.0
@schematics/angular 8.2.0
@schematics/update 0.802.0
rxjs 6.5.2
typescript 3.5.3
webpack 4.38.0
@nrwl/schematics": "^8.4.3",
It seems create-nx-workspace foobar has this problem, but if you do npm init nx-workspace foobar, then you won't run into this problem.
@un33k how would you fix this in an existing NX workspace?
Interested in how to fix this in an existing workspace as well. I installed @nrwl/schematics and it does not install the tslint file in the indicated path. I'm going to look into explicitly installing @nrwl/angular schematics or some such.
Most helpful comment
Interested in how to fix this in an existing workspace as well. I installed @nrwl/schematics and it does not install the tslint file in the indicated path. I'm going to look into explicitly installing @nrwl/angular schematics or some such.