Hi Amar, I was setting MFE the way you are asking, but faced this issue. Can you suggest how to fix it please? This happening post running below commands- 1. npm install webpack webpack-cli --save-dev 2. ng add @angular-architects/module-federation --project host-app --port 4200 >ng s host-app --o - Generating browser application bundles (phase: setup)...D:\angular projects\mono-workspace\node_modules\webpack\lib\container\ModuleFederationPlugin.js:58 throw new TypeError( ^ TypeError: The 'compilation' argument must be an instance of Compilation at ModuleFederationPlugin.getCompilationHooks (D:\angular projects\mono-workspace\node_modules\webpack\lib\container\ModuleFederationPlugin.js:58:10) at D:\angular projects\mono-workspace\node_modules\webpack\lib\container\HoistContainerReferencesPlugin.js:36:33 at Hook.eval [as call] (eval at create (D:\angular projects\mono-workspace\node_modules\tapable\lib\HookCodeFactory.js:19:10), <anonymous>:88:1) at Hook.CALL_DELEGATE [as _call] (D:\angular projects\mono-workspace\node_modules\tapable\lib\Hook.js:14:14) at Compiler.newCompilation (D:\angular projects\mono-workspace\node_modules\@angular-devkit\build-angular\node_modules\webpack\lib\Compiler.js:1124:30) at D:\angular projects\mono-workspace\node_modules\@angular-devkit\build-angular\node_modules\webpack\lib\Compiler.js:1169:29 at eval (eval at create (D:\angular projects\mono-workspace\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:31:1) at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
I am using Angular cli 15.2 Node 14.21.3 Webpack 5.99.5 Webpack cli 6.0.1 Module-federation 15.0.3 I am getting below error after installing ModuleFederation and ng s host-app -o UnhandledPrpmiseRejectionWarning: TypeError: The ‘compilation’ argument must be an instance of Compilation
I do not see those tabs on my screen. Where are we supposed to find that screen if we're just watchers?
Hi Sir.. I am getting CQRS error.. I have enabled Cross Origin Support on Java Side. And on the Angular Side.. I have provided provided proxy.confi.json with cross origin attributes.. and modified my angular json scripts to start.. "start": "ng serve --proxy-config proxy.conf.json", but still getting the cross origin support error.. could you please help me on this..
Good explanation, new subscriber here , please also make a video on containerising mfe apps thanks in advance
Hi Sir.. Thank you very much for the wonderful tutorials.. I am getting the below issue while starting the application for both host and mfe Error: Schema validation failed with the following errors: Data path "" must NOT have additional properties(ssr). The version of Node J I am using is 21.7 and the angular core and federation versions are 17.2.0 & 17.0.8 respectively
How to upgrade to Angular 15 . Is it only by using the command npm install -g @angular/cli@15 can you please suggest if this is a rite command?
Hi Sir.. the issue got resolved after I set the Server Side rendering to False. One more question please.. i am not seeing appmodule.ts file got created in my project.. but I did see the app module ts
Hi, my angular version is 15 but module-federation is 17, how to downgrade it to 15?
I am getting package. Json issue. How to fix it, i am using amgular 16
what exactly is module federation could you please explain or provide any reference ..
Could you explain how you fix package.json issue.
I'm getting unknown arguments:o
I'm using angular 17 when I tried to do it your way I got an issue. Could you please help me with this ng add @angular-architects/module-federation --project host-app --port 4200 i Using package manager: npm √ Found compatible package version: @angular-architects/module-federation@17.0.6. √ Package information loaded. The package @angular-architects/module-federation@17.0.6 will be installed and executed. Would you like to proceed? Yes √ Packages successfully installed. Cannot read properties of null (reading 'version')
Hi i have angular 18 version after installing module-federation when i run the app getting error as Schema validation failed with the following errors Data path "assets/0" must have required property 'output' Data path "assets/0" must be string Data path "assets/0" must match exactly one schema in oneOf Can you please help me how to resolve this issue
@DaminiSurve