-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: problems with integrating ng-packagr generated package with Angular CLI app: Module not found #513
Comments
I've found the culprit: in public api file, I have:
When I replaced it with explicit it with explicit exports:
then it works. Any idea why? |
Hi @dragonflypl, I don't know why it happens.
Can you confirm if either of the above and, if yes, which is your issue? That'll help to put up a good repro and then try to get a fix in. Info: user runs: $ cd path/to/library-sources
$ npm pack dist
$ cd path/to/cli-app-project
$ npm install ../logging/dist/logging-1.0.0-rc.1.tgz
$ ng build --prod |
The issue with barrels isn't usually barrels themselves but it is easy to cause
a circular dependency with them which is often times what causes this issue,
|
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem. |
Here's a repo that reproduces it: https://github.com/dragonflypl/ng-packagr-issue
logging
.npm run build
generates the library + doesnpm pack
fooGui
with Angular CLI and installed library it vianpm run consume
that installs tgznpm run build
fromfooGui
throws:Any idea what I did wrong or it is a bug somewhere?
The text was updated successfully, but these errors were encountered: