我有一个shell 和两个使用NX模块联盟的MFE,即
- agency(a)和
- home(b).
它托管在不同的子域中.
我在try 访问时遇到问题.
我的module-federation.manifest.json
{
"agency": "https://a.abc.maindomain.com",
"home": "https://b.abc.maindomain.com",
}
main.ts个
import { setRemoteDefinitions } from '@nrwl/angular/mf';
fetch('/assets/module-federation.manifest.json')
.then((res) => res.json())
.then((definitions) => setRemoteDefinitions(definitions))
.then(() => import('./bootstrap').catch((err) => console.error(err)));
以下是我的控制台错误
请指出我在这里做错了什么.