-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
in MFE Change in code trigger the build for all the apps(static-served and devRemotes) #16118
Comments
@AgentEnder @Coly010 Its really a blocker for a dev who use command Please let me know if you were able to reproduce it in the repo? |
Hi @ak274, From your example repo, I can see that is doing a rebuild of remote-two. However, it's pulling it from cache, it's not actually rebuilding. What I can say, is that the repo you've provided appears to have some kind of graphing issue. At least when I run |
@Coly010 Thanks for looking into it! Yes I agree that it takes from the cache and its fine. But it should only rebuild or pick from the cache those projects which are dependent of a lib where you make change and should not start picking all the apps from cache. In my actual project because I have around 10 remote apps. Even caching is not good DX. And it used to work fine in the older versions. I have updated my actual workspace from v15.2.0 to v15.9.2 The repro repository is newly created workspace with v15.9.2 |
Hi @Coly010, Were you able to figure out what's wrong here? |
@ak274 Not yet, still looking into. Nx v16 will fix the graphing issues when it's released, but I'll need to look further into why remote-two is still triggering |
@ak274 Yep, I've figured out the problem! Before, the static file server was not watching for changes by default, but when we switched to a common static file server to be used across all frameworks supported by Nx, that one does watch for changes by default. The fix is to add I'll create a PR that adds this when we generate new remotes. I can't write a migration to do this as it's expected functionality for some |
Adding I added Lets say if my remote app's name is
|
It shouldn’t be affecting devRemotes as they use a different target. Can you push your changes to your repo so I can take a look? |
@Coly010 My bad, its working fine. I was just looking in my terminal when I hit |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
When Dev makes a change in one of the library which has dependency on only one app (passed in --devRemotes) instead of building only that app it retrigger the build for all the remote apps statically served one too.
Expected Behavior
It should only build the app whose dependency has updated with new changes.
GitHub Repo
https://github.com/ak274/mfe-issue
Steps to Reproduce
nx serve host --devRemotes=remote-one
ui-form
library which is dependency ofremote-one
App only you will see that change will trigger the build forremote-two
also which is static-served.Note: Because its an empty project the rebuild of both the apps is still fast but in my production app only a small change took ages to reflect on screen as We have 6-7 huge apps.
Nx Report
Failure Logs
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: