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

You should not set multiply entry script! #694

Open
gejianvs opened this issue Aug 30, 2021 · 6 comments
Open

You should not set multiply entry script! #694

gejianvs opened this issue Aug 30, 2021 · 6 comments

Comments

@gejianvs
Copy link

主应用
umi3.0,
"@umijs/plugin-qiankun": "^2.24.1",
配置:
image

子应用umi2.9.6.
子应用对应的 "@umijs/plugin-qiankun": "^1.7.0",
image

运行抛错:
image

@qsd23
Copy link

qsd23 commented Dec 13, 2021

这个问题解决了吗?若已解决,方便说一下解决方案吗

@june2315
Copy link

image
config里面的dll配置注释掉就行了

@liuyunzyj
Copy link

config里面的dll配置注释掉也不行呀。注释掉会报错
image

@angry-bread
Copy link

请问有解决吗,我的也是qiankun下的umi子应用报这个问题,我生产环境打包的时候拆包处理了

@qsd23
Copy link

qsd23 commented Mar 13, 2023

通过动态给定id暂时解决了这个问题, 不知道后续会不会有bug @angry-bread
src/app.js
`function Test(props) {
useEffect(() => {
let rootDom = document.getElementById('id-name');
rootDom.id = new Date() * 1;
rootDom.className = 'rootDom';
}, []);
return props.children;
}

export function rootContainer(container) {
console.log('rootContainer', container);
return {container};
}`

src/pages/document.ejs
<div id="id-name"></div>

@yourSwiftie2023
Copy link

这个问题有解决吗?

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

6 participants