manfredsteyer / module-federation-with-angular-dynamic

Dynamic Module Federation with Angular
122 stars 68 forks source link

Unable to run all three project on Production. #51

Open pratikthakare777 opened 2 years ago

pratikthakare777 commented 2 years ago

Hey

After production build three folders are created on Azur Storage. Which you can check below.
--dist ---- mfe1 -------- app.routing.ts { path: 'flights', loadChildren: () => loadRemoteModule({ type: 'module', remoteEntry: 'https://xyz.com/devcontainer/mfe1/remoteEntry.js', exposedModule: './Module' }) .then(m => m.FlightsModule) }, ---- mfe2 ---- shell

Now I am trying to load mfe1 module inside of shell Application. remoteEntry.js file is getting loaded but for chunk 534.6537fc240a2495a2.js I am getting following ERROR. Error: Uncaught (in promise): ChunkLoadError: Loading chunk 534 failed.

Could you please provide details for running mfe application on production ?