alexzuza / angular-plugin-architecture-with-module-federation

An example of building pluggable Angular architecture with the help of webpack 5 Module Federation
76 stars 31 forks source link

Trying to build the project with angular 16 #4

Open aino-gautam opened 1 year ago

aino-gautam commented 1 year ago

@alexzuza I am trying to build and run this project with angular 16. Since this is Ivy compliant I thought why not :)

getting the following error while trying to run the build and serve command.

[error] Error: Cannot find module 'webpack/lib/container/ModuleFederationPlugin' Require stack:

aino-gautam commented 1 year ago

Not a pro at Angular. Any pointers ?

qq253498229 commented 1 year ago

I'm also doing the same thing. Is the issue resolved now? Is there a minimal demo available?

aino-gautam commented 1 year ago

This is now part of angular main release train since version 12. Look at angular.io

On Fri, Oct 13, 2023, 13:45 大胃王 @.***> wrote:

I'm also doing the same thing. Is the issue resolved now? Is there a minimal demo available?

— Reply to this email directly, view it on GitHub https://github.com/alexzuza/angular-plugin-architecture-with-module-federation/issues/4#issuecomment-1761098694, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAD6XTSZOTEADDKCTCXGWATX7D2DRANCNFSM6AAAAAA3FZTQ4A . You are receiving this because you authored the thread.Message ID: <alexzuza/angular-plugin-architecture-with-module-federation/issues/4/1761098694 @github.com>

qq253498229 commented 1 year ago

This is now part of angular main release train since version 12. Look at angular.io On Fri, Oct 13, 2023, 13:45 大胃王 @.***> wrote: I'm also doing the same thing. Is the issue resolved now? Is there a minimal demo available? — Reply to this email directly, view it on GitHub <#4 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAD6XTSZOTEADDKCTCXGWATX7D2DRANCNFSM6AAAAAA3FZTQ4A . You are receiving this because you authored the thread.Message ID: <alexzuza/angular-plugin-architecture-with-module-federation/issues/4/1761098694 @github.com>

@aino-gautam I'm sorry, I'm not quite sure what you mean. Could you please provide more details?

I have successfully integrated federation into my Angular project and it is able to communicate with the plugin normally.

Now I am not sure how to share the sharedModule between them.