Skip to content

addPackageJsonDependency / NodeDependencyType don't work #19

@gtamas

Description

@gtamas

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions