umijs / plugins

🍣 The one-stop shop for official Umi plugins and presets.
348 stars 238 forks source link

接入 umi/qiankun之后,主应用运行报错 #679

Open MachoManCk opened 3 years ago

MachoManCk commented 3 years ago

Uncaught (in promise) Error: Module "./$CWD$/node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/createClass" does not exist in container. while loading "./$CWD$/node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/createClass" from webpack/container/reference/mf at mf-va_remoteEntry.js:711

MachoManCk commented 3 years ago

主应用用的ant-design-pro config.ts下配置了 qiankun: { // qiankun.master.apps 配置了子应用的唯一名称,及入口 html 地址 master: { apps: [{ name: 'order', entry: 'http://localhost:8000' }], }, },