-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Nx v14 can't auto shared some module in mfe project #10054
Comments
Thanks for reporting this! This is a tricky scenario for the automatic dependency collection to handle. The As you mentioned, you were previously able to share it using manual configuration, while it is not possible to do so with the new MF support. We just merged a PR (#10156) that adds support for passing additional dependencies to share, so you can manually add any dependency that wasn't picked automatically. When the change included in that PR gets released, you would be able to pass additional shared configuration to the I'm going to close this given the fix for the issue has already been merged. Please keep an eye on the releases to get the fix, it should be released soon. |
Hello @leosvelperez, first many thanks for your work, it's great. I run into a similar issue. In my case, it was 3rd party component which is using AnimationBuilder. Steps to Reproduce
IssueWhen both host and remote are using AnimationBuilder then it throws an error even |
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
In Nx v.14 + :
I followed the documentation:
The conclusion is:
Unable to share @angular/animations automatically when I use micro frontend project.
In Nx v.13 + :
Manual webpack.config.js configuration is no problem
shared: share({
'@angular/animations': {
singleton: true,
eager: true,
requiredVersion: 'auto'
},
......
})
Expected Behavior
@angular/animations needs to be shareable or provide manual configuration method
Steps to Reproduce
Failure Logs
Environment
Node : 16.14.0
OS : darwin x64
npm : 8.3.1
nx : 14.0.5
@nrwl/angular : 14.0.5
@nrwl/cypress : 14.0.5
@nrwl/detox : Not Found
@nrwl/devkit : 14.0.5
@nrwl/eslint-plugin-nx : 14.0.5
@nrwl/express : Not Found
@nrwl/jest : 14.0.5
@nrwl/js : Not Found
@nrwl/linter : 14.0.5
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : Not Found
@nrwl/nx-cloud : Not Found
@nrwl/nx-plugin : Not Found
@nrwl/react : Not Found
@nrwl/react-native : Not Found
@nrwl/schematics : Not Found
@nrwl/storybook : 14.0.5
@nrwl/web : Not Found
@nrwl/workspace : 14.0.5
typescript : 4.6.4
rxjs : 7.5.5
The text was updated successfully, but these errors were encountered: