Closed koshdim closed 1 year ago
same with angular13 project, just the error is slightly different
main.js:1 ERROR Error: Uncaught (in promise): Error: NG0203
Error: NG0203
at Eg (263.js:1:54171)
at Object.Bt (263.js:1:54322)
at d.ɵfac [as factory] (263.js:1:195691)
at uv.hydrate (main.js:1:121536)
at uv.get (main.js:1:119126)
at main.js:1:119933
at Set.forEach (<anonymous>)
at uv._resolveInjectorDefTypes (main.js:1:119917)
at new wp (main.js:1:136906)
at Ul.create (main.js:1:137606)
at q (polyfills.js:1:17670)
at q (polyfills.js:1:17205)
at polyfills.js:1:18515
at v.invokeTask (polyfills.js:1:8244)
at Object.onInvokeTask (main.js:1:151185)
at v.invokeTask (polyfills.js:1:8165)
at v.runTask (polyfills.js:1:3302)
at A (polyfills.js:1:10634)
at v.invokeTask [as invoke] (polyfills.js:1:9407)
at g (polyfills.js:1:22992)
Doesnt angular use a custom federation plugin? from angular architects?
File the bug with them, not a webpack issue
angular12 example doesn't use angular architects package
here is webpack-y error:
TypeError: _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken is not a constructor
4666 Angular
Webpack 20
__webpack_require__
4497
__webpack_require__
8596
__webpack_require__
invoke
run
scheduleResolveOrReject
invokeTask
runTask
drainMicroTaskQueue
promise callback*scheduleMicroTask
scheduleTask
scheduleTask
scheduleMicroTask
scheduleResolveOrReject
resolvePromise
makeResolver
webpackJsonpCallback
<anonymous>
how do I investigate this? was module loaded, was all components of the module loaded?
Looks like Babel transform maybe. Class getting converted into function call instead or true class
if I clear 'shared' in both shell and profile, I get an error when navigate to microfrontend
I assume 'profile' misses some libraries and therefore is unable to load. how can I configure profile to include all it needs in remoteEntry.js?