Skip to content

Bug when local library linked by npm link (lib is not in the npm registry.) #33469

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

Closed
kolkov opened this issue Oct 29, 2019 · 5 comments
Closed
Labels
area: compiler Issues related to `ngc`, Angular's template compiler
Milestone

Comments

@kolkov
Copy link

kolkov commented Oct 29, 2019

Hi! I try to use local lib on my windows host, I put it to dependencies:
image
but got an error when reinstall after ngcc changes message:
image

Angular CLI: 9.0.0-next.18
Node: 12.6.0
OS: win32 x64
Angular: 9.0.0-next.13
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router, service-worker

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.900.0-next.18
@angular-devkit/build-angular     0.900.0-next.18
@angular-devkit/build-optimizer   0.900.0-next.18
@angular-devkit/build-webpack     0.900.0-next.18
@angular-devkit/core              7.3.9
@angular-devkit/schematics        7.3.9
@angular/cli                      9.0.0-next.18
@angular/pwa                      0.13.9
@ngtools/webpack                  9.0.0-next.18
@schematics/angular               7.3.9
@schematics/update                0.900.0-next.18
rxjs                              6.5.3
typescript                        3.6.4
webpack                           4.41.2
@kolkov
Copy link
Author

kolkov commented Oct 29, 2019

If I remove this lib from dependencies, install works fine, but after install I got error:
image
if I return it to dependencies I see the same error, but if I click to go to declaration in IDE I see:
image
whats wrong?

@kolkov
Copy link
Author

kolkov commented Oct 29, 2019

The app is builds successfully:
image
but, I can't see message in the footer:
image
instead of
image
But apps rebuilds, if I change lib code.

@AndrewKushnir AndrewKushnir added area: compiler Issues related to `ngc`, Angular's template compiler comp: ngcc labels Oct 29, 2019
@ngbot ngbot bot modified the milestone: needsTriage Oct 29, 2019
@kolkov
Copy link
Author

kolkov commented Oct 29, 2019

from console.
image
image

@alxhub
Copy link
Member

alxhub commented Oct 29, 2019

npm link isn't supported by the Angular compiler currently. Closing this as WAI.

@alxhub alxhub closed this as completed Oct 29, 2019
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Nov 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: compiler Issues related to `ngc`, Angular's template compiler
Projects
None yet
Development

No branches or pull requests

3 participants