vue-cli-plugin-qiankun: application 'foo-app' died in status LOADING_SOURCE_CODE: Failed to fetch

$ cd examples $ yarn $ yarn install:all $ yarn serve:all

你好,我运行以上4句后,打开F12,控制台报错信息如下:

Failed to load resource: net::ERR_EMPTY_RESPONSE
Uncaught TypeError: application 'foo-app' died in status LOADING_SOURCE_CODE: Failed to fetch

单独运行两个子项目是ok的 请问有解决的方式吗?谢谢

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Comments: 20 (5 by maintainers)

Most upvoted comments

通过fetch访问子项目,需要子项目进行可跨域配置,vue.config.js:

devServer: { headers: { ‘Access-Control-Allow-Origin’: ‘*’ } }