You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Webpack config not finding nested node_modules #6248
Unfortunately, yes, it currently doesn't work but a solution is in progress.
Note that everything works with yarn as it will hoist the dependencies to the top level.
Enabling the use of the Node.js module resolution algorithm (a minor code change) will ensure the correct and proper module is used within an app. As witnessed in this issue as well as #3023, this is a real and repeatable concern.
The change will cause issues in two main situations:
Angular libraries which do not properly use peer dependencies.
Linked libraries which have their peer dependencies installed via dev dependencies.
The first is essentially a non-issue as the libraries are improperly packaged.
The second is a concern and will cause trouble to those wishing to use linked Angular library packages in development scenarios. However, ensuring an application can resolve and use the proper module (and allow the application to properly function) would generally outweigh the added developer inconvenience for a use case that while not uncommon is not extremely common either. This point, however, is definitely one for discussion.
Activity
clydin commentedon May 9, 2017
Unfortunately, yes, it currently doesn't work but a solution is in progress.
Note that everything works with
yarnas it will hoist the dependencies to the top level.Also, I would highly suggest using https://github.com/angular/angularfire2 which makes integrating firebase into an Angular app quite quick and painless.
filipesilva commentedon May 10, 2017
@hansl this is the problem we talked about yesterday with Firebase.
clydin commentedon May 11, 2017
Enabling the use of the Node.js module resolution algorithm (a minor code change) will ensure the correct and proper module is used within an app. As witnessed in this issue as well as #3023, this is a real and repeatable concern.
The change will cause issues in two main situations:
The first is essentially a non-issue as the libraries are improperly packaged.
The second is a concern and will cause trouble to those wishing to use linked Angular library packages in development scenarios. However, ensuring an application can resolve and use the proper module (and allow the application to properly function) would generally outweigh the added developer inconvenience for a use case that while not uncommon is not extremely common either. This point, however, is definitely one for discussion.
filipesilva commentedon May 11, 2017
IIRC there are already some issues with linked libraries anyway, and there is a pretty good solution in #3854 (comment).
So if those are the only two problematic cases, I'd say we should switch over to node module resolution.
angular-automatic-lock-bot commentedon Sep 7, 2019
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.