You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am facing an issue when using @angular-architects/module-federation for Angular Module Federation. The error TypeError: container.init is not a function occurs when trying to load the remote components.
Here is the error stack trace:
core.mjs:7404 ERROR TypeError: container.init is not a function at angular-architects-module-federation-runtime.mjs:22:21 at Generator.next (<anonymous>) ...
core.mjs:7404 ERROR TypeError: container.get is not a function at angular-architects-module-federation-runtime.mjs:7:37 at Generator.next (<anonymous>) ...
Steps to reproduce:
Configure Webpack with @angular-architects/module-federation.
Try to load remote components using loadRemoteModule.
The error occurs during the ngOnInit lifecycle.
I have already tried adjusting the Webpack output to scriptType: 'text/javascript' as mentioned in some GitHub issues, but it did not resolve the problem.
This error does not occur if I comment out one of the asynchronous module loads (loadHeader() or loadFooter()).
I also tried using a promise.all to call the asynchronous functions and it didn't work...
Could someone please help me identify the issue?
The text was updated successfully, but these errors were encountered:
I am facing an issue when using @angular-architects/module-federation for Angular Module Federation. The error TypeError: container.init is not a function occurs when trying to load the remote components.
Here is the error stack trace:
core.mjs:7404 ERROR TypeError: container.init is not a function at angular-architects-module-federation-runtime.mjs:22:21 at Generator.next (<anonymous>) ...
core.mjs:7404 ERROR TypeError: container.get is not a function at angular-architects-module-federation-runtime.mjs:7:37 at Generator.next (<anonymous>) ...
Steps to reproduce:
Configure Webpack with @angular-architects/module-federation.
Try to load remote components using loadRemoteModule.
The error occurs during the ngOnInit lifecycle.
Shell
webpack configuration (shell)
Remote webpack configuration
Additional information:
I have already tried adjusting the Webpack output to scriptType: 'text/javascript' as mentioned in some GitHub issues, but it did not resolve the problem.
This error does not occur if I comment out one of the asynchronous module loads (loadHeader() or loadFooter()).
I also tried using a promise.all to call the asynchronous functions and it didn't work...
Could someone please help me identify the issue?
The text was updated successfully, but these errors were encountered: