-
Notifications
You must be signed in to change notification settings - Fork 205
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
es-module-shims Uncaught Error #671
Comments
Hi, do you call initFederation? |
yes, here is my main .ts file
|
Hi @manfredsteyer, do you have any lead that could help me debug it ? |
Hi @joepeace01! In our app we also have microfrontends in different repositories. I discovered that even minimal version mismatch of shared library in mfe and shell causes native-federation-runtime to select version of mfe for it instead of shell's one. Selection of version seems to happen here: https://github.com/angular-architects/module-federation-plugin/blob/main/libs/native-federation-runtime/src/lib/init-federation.ts#L104. We have solved our problem by setting versions of shared packages strictly equal in both repositories, without any Hope it will help. |
hi @manfredsteyer, back on this topic, wanted to know if you had the chance to look into it ? I'm confused cause I don't have this issue on my shell. They both have similar configurations except what's specific to shell and remote. I'm having those errors locally when starting the remote app on port 4201. None of the api calls are working, I only get a static version of the home page |
For which library do you need help?
native-federation
Question
Hi, I set up native federation to connect two angular 18 app which are on two different repositories.
My configurations are almost the same for my two apps, the host app is working fine, but the remote one does not pass the boostrapping of the app. I can still see my home page, but it's only cached information that I get from the server, cause I also installed angular ssr.
The app is working fine on server side but not on client side. I get an error from es-module-shims, I tried to skip all my packages but I still have the error so I think that it comes from the boostrapping of the app in the main.js file.
I don't understant what causes this error, and I tried different version of es-module-shims.
Here is my angular.json file:
my package.json file:
my federation.conf.js file:
my app.config.ts file:
The text was updated successfully, but these errors were encountered: