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

StaticInjectorError when loading via systemJS import-map #241

Open
SebastianOltmanns opened this issue Dec 1, 2021 · 2 comments
Open

StaticInjectorError when loading via systemJS import-map #241

SebastianOltmanns opened this issue Dec 1, 2021 · 2 comments

Comments

@SebastianOltmanns
Copy link

SebastianOltmanns commented Dec 1, 2021

I want to share common dependencies in a micro-frontend project using single-spa/single-spa-angular. When trying to share @esm-bundle/angular__core, the console shows the following error:

grafik

MWE: https://github.com/SebastianOltmanns/singlespa-angular-core-share-dep

My minimal working example has three projects:

  • root, the root-config, where the systemJS import-map is loaded and the micro-frontend services are loaded
  • p1, basic angular example project, where @angular/core is externalized
  • p2, basic angular example project, where @angular/core is included

When running all three projects, visiting p1 gives the error shown above, but visiting p2 works. The literal only difference in p1 and p2 is in externalizing the @angular/core library, and instead using @esm-bundle/angular__core. This is why I open this issue here, because I think it has to do with this project.

Thanks for any help or investigations!

@StevenKolamkuzhiyil
Copy link

Hello, is there an update to this issue? I'm having the same problem with Angular 11.

@SebastianOltmanns
Copy link
Author

SebastianOltmanns commented Jan 27, 2022 via email

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