Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qiankun多个子项目,只启动了一个,其他的没有启动会报错 #259

Closed
Luxiaoshi opened this issue Jun 18, 2020 · 2 comments
Closed

Comments

@Luxiaoshi
Copy link

umi@3.2.3
@umijs/plugin-qiankun@^2.2.0

用的构建式
qiankun: {
master: {
apps: [
{
name: 'app1',
entry: '//localhost:7001',
base: '/app1',
history: 'browser'
}, {
name: 'ods',
entry: '//localhost:7002',
base: '/ods',
history: 'browser'
}
],
jsSandbox: true,
prefetch: true
}
},
当只启动了7002,没有启动7001的时候,打开http://localhost:8000/ods,页面的console会报错
GET http://localhost:7001/ net::ERR_CONNECTION_REFUSED

image

@phobal
Copy link
Contributor

phobal commented Jun 20, 2020

把 prefetch 设置为 false 试试

@Luxiaoshi
Copy link
Author

@phobal 可以了,感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants