ng generate @nrwl/angular:library time-picker generate a component
Returns an error workspace_1.addLintFiles is not a function
After calling a command ng generate @nrwl/angular:library via console and selection of stylesheet format it returns an error workspace_1.addLintFiles is not a function
If I call nx "generate" "@nrwl/angular:library" "time-picker" nothing happened
Packages versions:
@angular/cli: 8.0.0
rxjs: 6.4.0
@nrwl/angular: 8.7.0
I wasn't able to reproduce this. Will you provide a repo?
Looks like some wrong packages was installed in my node modules. Issue should be closed
Hi @vsamotskiy. How did you resolve this problem. Can you help to me?
For me, this was the package @nrwl/angular importing @nrwl/workspace the function addLintFiles. My @nrwl/workspace dependency was older and did not export the function. Updating @nrwl/workspace solved the problem for me.