manfredsteyer / multi-framework-micro-frontend

76 stars 36 forks source link

Angular shell with react web component and angular MFE (Lazy load/feature module) #1

Open vjangari opened 3 years ago

vjangari commented 3 years ago

We have been trying to load React MFE in to angular shell. This angular shell loading angular MFE's with lazy loading concept without any issue. This example you have given with web components. Can you also include example to load react web components MFE and angular MFE with lazy/feature module with multiple components and load on to shell?

6ygga commented 3 years ago

When i added Wrapper Component from the example to my app, and tried to use different angular version, I got : bootstrap.ts:21 Error: inject() must be called from an injection contextat injectInjector Only (core.js:4717)at Module.ɵɵinject (core.js:4727) at Object.A11yModule_Factory [as factory] (a11y.js:2307) at R3Injector.hydrate (core.js:11680)at R3Injector.get (core.js:11501) at core.js:11538at Set.forEach () at R3Injector._resolveInjectorDefTypes (core.js:11538) at new NgModuleRef$1 (core.js:24938) at NgModuleFactory$1.create (core.js:24992) I dont know how to fix it... Could you help?