Hello Guys,
I am trying to build up a MFE application with Angular 17 and Native Federation (v17.1.7)
The concept is the Shell, MFE1 and MFE2 to have same domain but they are hosted in different subfolders, for example:
The issue is that when i tried to open each MFE directly in example.com/mfe1 it give me an error in console:
remoteEntry.js 404 Not Found
All other files like chunk-xxxyyzz.js and main.js are correctly loaded without any errors. I already checked the dist/browser folder and the file is there, successfully created.
When i tried to fetch the remoteEntry without subfolder like example.com/remoteEntry.js it loads correctly.
Did anyone have a similar issue?
Hello Guys, I am trying to build up a MFE application with Angular 17 and Native Federation (v17.1.7) The concept is the Shell, MFE1 and MFE2 to have same domain but they are hosted in different subfolders, for example:
I followed the official website's manual and set the baseHref to be ‘/mfe1’ in angular.json in first MFE and '/mfe2' in second MFE app like this:
and also here:
also in src/index.html file
<base href="/mfe1">
The issue is that when i tried to open each MFE directly in example.com/mfe1 it give me an error in console:
remoteEntry.js 404 Not Found
All other files like chunk-xxxyyzz.js and main.js are correctly loaded without any errors. I already checked the dist/browser folder and the file is there, successfully created.
When i tried to fetch the remoteEntry without subfolder like example.com/remoteEntry.js it loads correctly. Did anyone have a similar issue?