Trying to build the project with angular 16
@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:
- angular-plugin-builder/for-angular-11/projects/plugins/webpack.config.js
- angular-plugin-builder/for-angular-11/node_modules/ngx-build-plus/src/utils/index.js
- angular-plugin-builder/for-angular-11/node_modules/ngx-build-plus/src/plus-dev-server/index.js
- angular-plugin-builder/for-angular-11/node_modules/@angular-devkit/architect/node/node-modules-architect-host.js
- angular-plugin-builder/for-angular-11/node_modules/@angular-devkit/architect/node/index.js
- angular-plugin-builder/for-angular-11/node_modules/@angular/cli/models/architect-command.js
- angular-plugin-builder/for-angular-11/node_modules/@angular/cli/commands/serve-impl.js
- angular-plugin-builder/for-angular-11/node_modules/@angular/cli/node_modules/@angular-devkit/schematics/tools/export-ref.js
- angular-plugin-builder/for-angular-11/node_modules/@angular/cli/node_modules/@angular-devkit/schematics/tools/index.js
- angular-plugin-builder/for-angular-11/node_modules/@angular/cli/utilities/json-schema.js
- angular-plugin-builder/for-angular-11/node_modules/@angular/cli/models/command-runner.js
- angular-plugin-builder/for-angular-11/node_modules/@angular/cli/lib/cli/index.js
- angular-plugin-builder/for-angular-11/node_modules/@angular/cli/lib/init.js
- angular-plugin-builder/for-angular-11/node_modules/@angular/cli/bin/ng
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
at Function.Module._load (internal/modules/cjs/loader.js:667:27)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.
(angular-plugin-builder/for-angular-11/projects/plugins/webpack.config.js:1:32) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Module.require (internal/modules/cjs/loader.js:887:19) at require (internal/modules/cjs/helpers.js:74:18) at Object.transforms. [as webpackConfiguration] (angular-plugin-builder/for-angular-11/node_modules/ngx-build-plus/src/utils/index.js:56:38) at setup (angular-plugin-builder/for-angular-11/node_modules/@angular-devkit/build-angular/src/dev-server/index.js:164:46) at processTicksAndRejections (internal/process/task_queues.js:97:5)
Not a pro at Angular. Any pointers ?
I'm also doing the same thing. Is the issue resolved now? Is there a minimal demo available?
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>
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.