umi4子应用无法在主应用中热更新,是否有解决办法? #2909
Unanswered
Snorlaxx-plot
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
子应用配置如下:
export default defineConfig({ routes: [{ path: "/", component: "index" }], npmClient: "pnpm", plugins: ["@umijs/plugins/dist/qiankun"], qiankun: { slave: {}, }, mfsu: false, fastRefresh: true, monorepoRedirect: { srcDir: ["../src"] }, mountElementId: "deye", base: "/deye", });主应用为umimax应用,配置如下
export default defineConfig({ antd: { }, access: {}, model: {}, initialState: {}, request: {}, layout: { title: '@umijs/max', }, routes, npmClient: 'pnpm', qiankun: { master: { prefetch: false } }, mfsu: false });目前整个项目可以正常启动,但启动主应用和子应用时,修改子应用无法触发热更新,但直接访问子应用可以正常热更新。
目前在社区里也看到一些类似的问题,但好像都没有解决办法?
Beta Was this translation helpful? Give feedback.
All reactions