application 'foo-app' died in status LOADING_SOURCE_CODE: Failed to fetch

See original GitHub issue

$ 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的 请问有解决的方式吗?谢谢

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:20 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
lishan-lscommented, Sep 28, 2020

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

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

0reactions
toSeeWorldcommented, Oct 8, 2022

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

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

感谢,修改子应用的webpack后重启项目,成功解决

Read more comments on GitHub >

github_iconTop Results From Across the Web

Application 'xxx' died in status LOADING_SOURCE_CODE ...
Hi @ooooevan, good question. This error is explained in detail in these docs. What it means is that React is not in your...
Read more >
Uncaught Error: application '<appname>' died in status ...
I am using Single-SPA-angular in micro-front-end and Single-SPA version 5.3.4 in Root application. main.single.spa.ts in micro-front-end ...
Read more >
Getting error "uncaught app1: application 'app1i' died in status ...
I am implementing single-spa(for micro front end) in existing project which is in angular 8. Installed single-spa in app1 using command "ng ...
Read more >
gwtproject/gwt - Gitter
Uncaught ReferenceError: 'gwt' died in status LOADING_SOURCE_CODE: __gwt_isKnownPropertyValue is not defined at app (app.nocache.js:20) at Object.364 ...
Read more >
Single-SPA and Microfrontend Troubleshooting - OpenMRS Wiki
Browser Error Console Errors ... Uncaught foo: Application 'foo' died in status LOADING_SOURCE_CODE: systemjs-webpack-interop: There is no ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found