Skip to content
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

fix(angular): shared transitive npm deps from host and remote applica… #9997

Conversation

yharaskrik
Copy link
Contributor

…tions

Current Behavior

Currently when building MFEs with Nx if a remote has a transitive dependency on an npm lib that npm lib is not included in the shared libs when compiling with webpack.

Example:

Host AppModule imports:

// ngrx store
StoreModule.forRoot()

Remote AppModule imports:

SomeCustomStateModule

SomeCustomStateModule imports:

StoreModule.forFeature()

will result in a DI injection issue where the ReducerManager is not provided, this is because @ngrx/store is not shared.

Expected Behavior

Should shared all npm deps between the different MFEs

Related Issue(s)

Fixes #

@nx-cloud
Copy link

nx-cloud bot commented Apr 25, 2022

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 29586f4. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 13 targets

Sent with 💌 from NxCloud.

@vercel
Copy link

vercel bot commented Apr 25, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
nx-dev ⬜️ Ignored (Inspect) Apr 26, 2022 at 3:49PM (UTC)

Copy link
Member

@leosvelperez leosvelperez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

It looks good to me, there's just a small issue to solve for which I left a suggestion for both plugins.

@yharaskrik
Copy link
Contributor Author

Done and done @leosvelperez!

Copy link
Member

@leosvelperez leosvelperez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🎉

@github-actions
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants