micro-app
micro-app copied to clipboard
子应用vue2路由组件用require懒加载时,路由切换会报 loading chunk 0 failed
由于组件路径是变量不能用import,所以用require,这样会报错。
(resolve) => require([@/views${view}], resolve)
Hello @lxmp. In order to facilitate location and troubleshooting, we need you to provide a realistic GitHub repository. 您好 @lxmp, 为了方便定位和排查问题,我们需要您提供一个重现实例,请提供一个尽可能精简的 GitHub 仓库地址。
Since the issue was labeled with Need Reproduction, but no response in 7 days. This issue will be close. If you have any questions, you can comment and reply.
由于该 issue 被标记为需要可复现步骤,却 7 天未收到回应。现关闭 issue,若有任何问题,可评论回复。