Closed koshdim closed 1 year ago
Hi Koshdim, I am also kind of stuck at the same place. Were you able to get any solution for the same. If yes, please do share the repective docs or links.
Regards, Jagadesan
@JP-Jagadesan , unfortunately no, have to use sharing in my projects for now
I had the same problema without shared!! Just saying that, for now, it's a must go to work. I'm using Angular 15.
Yes, you'll get this error in this very case. Because now, each MF comes with its own Angular, however, Angular is only bootstrapped once.
If you really want each MF to have its own Angular version, you need to bootstrap Angular once per MF. This happens automatically when wrapping the Angular apps as web components with Angular Elements. Please find some examples for this here: https://www.npmjs.com/package/@angular-architects/module-federation-tools
in your example, if I remove sharing from remote and host like this
I get this error:
how can I make it work without sharing components?