schematics-utilities
schematics-utilities copied to clipboard
addPackageJsonDependency / NodeDependencyType don't work
If I try to call this function or use the mentioned type, I get this error:
Cannot find module 'chalk'
Error: Cannot find module 'chalk'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:668:15)
Even if the function doesn't get called but it's part of the code, I'm getting the same error. It only works if I comment the function call.
I tried npm cache verify npm ci npm i chalk
No change. Is this a bug? It seems the error is generated by @angular/cdk/schematics/ng-update/upgrade-rules/class-inheritance-rule.js:10:17
Is it possible to fix this?
The latest version ditches @angular/cdk in favor of copying the specific original code internally.
Would you like to check if now, with v2.0.1, the issue still happens?