Angular 9 - The target entry-point has missing dependencies

后端 未结 6 1541
南笙
南笙 2021-02-06 23:09

I have upgraded an Angular library to Angular 9. However when I attempt to use that library in another Angular 9 project I get an error like this:

The target entry-poi

6条回答
  •  情话喂你
    2021-02-06 23:32

    In the project that imports your library, add the following to the tsconfig.json. This ensures that tsc is able to resolve the "missing dependencies" between submodules in your library.

     "compilerOptions": {
        "paths": {
          "mycomponents/*": [
            "./node_modules/mycomponents/*"
          ],
    

    With this, there was no need for whitelistedNonPeerDependencies.

提交回复
热议问题