schematics-utilities icon indicating copy to clipboard operation
schematics-utilities copied to clipboard

addPackageJsonDependency / NodeDependencyType don't work

Open gtamas opened this issue 6 years ago • 1 comments

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?

gtamas avatar Dec 31 '19 13:12 gtamas

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?

nitayneeman avatar Jan 04 '20 12:01 nitayneeman