umijs / qiankun

📦 🚀 Blazing fast, simple and complete solution for micro frontends.
https://qiankun.umijs.org
MIT License
15.73k stars 2.01k forks source link

子项目用vite-plugin-theme插件,主项目引入报错[import-html-entry]: error occurs while executing normal script,子项目单独启动是没问题的 #2210

Closed gaofeng222 closed 2 years ago

gaofeng222 commented 2 years ago

我们有两个项目,都是用的jeecg的vue3.0+vite2搭建的,子项目用到了vite-plugin-theme插件,单独启动是没问题的,但是主应用接入后就报错了,导致整个页面样式错位了! 经排查,问题应该就出现在这里,但是不知道怎么解决,是qiankun的问题,还是vite插件的问题 image

image

相关环境信息

github-actions[bot] commented 2 years ago

Hello @gaofeng222. In order to facilitate location and troubleshooting, we need you to provide a realistic example. Please forking these link codesandbox or clone qiankun examples to your GitHub repository.

你好 @gaofeng222, 为了方便定位和排查问题,我们需要你提供一个重现实例,请提供一个尽可能精简的链接 codesandbox 或直接 clone qiankun examples,并上传到你的 GitHub 仓库。

992forever commented 2 years ago

@gaofeng222 你好请问你解决了吗?我也遇到了相似的问题

gaofeng222 commented 2 years ago

@gaofeng222 你好请问你解决了吗?我也遇到了相似的问题 还没有解决,我这是开发的时候就有问题,也有人在vite-plugin-theme那边提到,但是还没人回复解决方法 https://github.com/vbenjs/vite-plugin-theme/issues/13

zqy233 commented 2 years ago

qiankun支持vite了?

github-actions[bot] commented 2 years ago

Since the issue was labeled with Need Reproduction, but no response in 30 days. This issue will be close. If you have any questions, you can comment and reply. 由于该 issue 被标记为需要可复现步骤,却 30 天未收到回应。现关闭 issue,若有任何问题,可评论回复。

lucky-zouzou commented 1 year ago

请问作者解决了吗?我的项目没有装vite-plugin-theme,线上环境也出现一样的报错,找不到原因 T T

zhaohuanyuu commented 1 year ago

有解决的同学吗

JohnsonCoding commented 10 months ago

有解决的朋友吗?急急急

JohnsonCoding commented 10 months ago

@gaofeng222 你好,请问最后怎么解决的,谢谢了

dxh110 commented 4 months ago

这个问题到24年了,现在解决了吗 @gaofeng222