-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Migrate an existing angular app into a mfe host #10496
Comments
Thanks for reporting this! Could you please share a repro? Maybe the trimmed-down app you mentioned. |
Please double-check that after running the import('./bootstrap').catch(err => console.error(err)); |
@leosvelperez Thank you for your help. I doube-checked what you asked for and everything looks good. I'll try to trim down the app; although, it could be tough, as it is a kinda huge app ;) |
@leosvelperez It seems like I was able to narrow it down and that angular i18n is making trouble; especially the line Sample repo can be found here. Steps that were taken to create the repo:
What am I doing wrong? P.S.: One little side question: Why is |
Your npm cache could be causing the I've found the issue with the polyfill and I'll have a fix created for it soon |
@Coly010 im having exactly same error right now even though im working on latest available version 14.4.2. Removing
So removing the line is not a solution for me :( *Edit. |
Hi @tadamczak did you find a solution for this? We are facing the same issue |
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
I have an existing angular app using the latest version of nx (14.1.9). I now want to migrate this relatively big app to be a mfe host. In a first step even without any remotes. The current app should just function as a host. So I called the
ng generate @nrwl/angular:setup-mfe
schematic to transform the current app into a host:Everything compiles and the application can be served but when I reload the page in the browser, I get:
I couldn't find any documentation on how to migrate an existing app to a mfe host and I have absolutely no idea where to even look for a solution or how to tackle this error. I trimmed down the app so that the main.ts and the app component are very simple but I cannot get it to work. Is it some configuration issue? Is my assumption correct that this should work without any issues?
Expected Behavior
I was expecting, that adding a host is not a problem as it is just the host that can contain the "old" app without any issues.
Failure Logs
Environment
Node : 16.13.2
OS : win32 x64
yarn : 1.22.5
The text was updated successfully, but these errors were encountered: