I have an angular 7 library called LibA (created with ng g library ...
), there I have installed an NPM package named DependencideA. Objects from DependencideA I have imported only in NgModuleA and its Components.
Now when I'm using my NPM package LibA in an Angular App, I have following error: error TS2307: Cannot find module 'DependencideA'.
Even if I don't import the NgModuleA from LibA (but I have imported NgModuleB from LibA, which don't use DependencideA!).
Why I need this DependencideA, even I don't use objects from there? Is there a way to avoid this without splitting LibA?
EDIT:
Here an example: https://github.com/admir86/LibSample
I'm using verdaccio as npm proxy to publish the LibA and install it in the LibAConsumer project.