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
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
.