0

Currently i am facing two problems:

I have two repos one for shell and another for MFE application

Here is the version o module federation

@angular-architects/module-federation": "^14.3.12

First Problem: I have webcomponent created which is custom grid and it created separately in different repo. And this components is install via npm (added in package.json file) in MFE application project. And add the necessary files in script section of angular.json file. MFE application run properly when standalone. But when we use the MFE in shell application the shell application doesn't show the custom webcomponent. Only way to work is to install the same webcomponent in shell as well to work.

So anybody any idea how can share the webcomponents which used by MFE in shell application instead of installing in shell application project?

Second Problem: Another problem I currently facing is sharing static files between MFE application and shell. I have env.js file which has api call urls which is used by MFE application.With MFE application its works correctly. But when I load the MFE application in shell application it doesn't recognizes the API url call because it tries to search in its asset folder instead of assets folder of MFE application?

Please let me know what i am missing here?

I tried with webconfig.js files in MFE application which angular module federation has created but didn't got any break through to these problems

0 Answers0