-
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
How to realize singleton sharing of service exposed by third party package in mf #23209
Comments
nx version 17.0.3 works fine |
Didn't solve this problem #21036 |
After further investigation, this is being caused by using |
You can compile a service and drop it into node_module with the same effect |
For example, NzIconService,NzConfigService in ng-antd-zorro,will export service in root,but in mf sub applicaction ,unable to get the service instance of host |
nx + mf + ng-zorro not work in 17 and 18 version (I'm open issue). Version 16 work fine |
Closing in favour of: #26878 |
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 mf, the service of the host application cannot be obtained from the service child application exposed by the third-party package
Expected Behavior
want to share
GitHub Repo
https://github.com/EnochGao/nx-test
Steps to Reproduce
There are some third-party library packages to export a global service, here I use "my-base": "file:dist/libs/my-base", simulation, the sub-application is no value
Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: