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

single spa - Angular - cross microfrontend import - angular service with nested deps #505

Open
AnandSonake opened this issue Mar 18, 2024 · 1 comment

Comments

@AnandSonake
Copy link

single spa - Angular - cross microfrontend import - angular service with nested deps

Description:
We have separate repo for Root-config, navbar, container, admin MFEs.
Currently we are facing service usage issue. Angular service is defined in a container mfe and we are trying to inject it in one of the components of admin mfe.
We identified that if service does not have any dependency (i.e. not nested dep) then we are able to inject such service in admin's component but if service has another dep then it fails in admin mfe.

Example:

Container MFE:
	TenantService (Tenant Service has dep on SessionStorageService)
	SessionStorageService
	
	
Amdin MFE:
	ActivityComponent(dep: TenantService and others)
	
	
Here, ActivityComponent gives an error as TenantService is injected in it which has another dependency.

Libs:

  • @angular/core version: 17
  • single-spa-angular version: 9.0.1
@alaindeurveilher
Copy link

I am starting with single spa today. Just reading around, I noticed that the update for Angular 17 has not been released yet at this day, v9.0.1 is for Angular 16. Maybe it's due to incompatibilities. You should try maybe with the master branch instead of the v9.0.1 to see if your issue is gone?

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

2 participants