Skip to content
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

Navigation between micro frontends with web-components does not work #44

Open
TCar10s opened this issue Mar 13, 2024 · 2 comments
Open

Comments

@TCar10s
Copy link

TCar10s commented Mar 13, 2024

While testing the ng-web-component-mixed branch, I found failures in the navigation between microfrontends, but the navigation from shell to microfrontend works correctly.

Initially to be able to navigate from the host to the microfrontends I had to share the remoteEntry to the WrapperComponent:
Screenshot 2024-03-13 at 4 50 19 PM

If the remoteEntry is not added, the following error is generated:
image

Well, with the remoteEntry added and trying to navigate between microfrontends, the URL changes but the component does not load, it seems that the navigation is trying to resolve to the origin microfrontend (I also made use of the connectRouter function that Mandred Steyer shares with us):

Screen Recording 2024-03-13 at 5 09 33 PM (3)

According to the analysis carried out, navigation from a microfrontend without web-component to the host or to another microfrontend with web-component works well, but navigation from a microfrontend with web-component to an external route (host or another microfrontend) does not work.

Has anyone been able to solve this problem with navigation to external routes using microfrontends with web-component? Thank you

@TCar10s TCar10s changed the title Navigation between microfrontends does not work Navigation between micro frontends with web-components does not work Mar 13, 2024
@davishooly

This comment was marked as outdated.

@Greech
Copy link

Greech commented Aug 26, 2024

Are you sure you want to navigate directly from MFE to MFE? I think the proper way of navigating between MFE should be done using shell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants