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

非单页面项目做子应用会报错VM3921:7 Uncaught ReferenceError: LiveReload is not defined #1380

Closed
306416836 opened this issue Sep 23, 2024 · 2 comments
Labels
Need Reproduction 需要复现步骤

Comments

@306416836
Copy link

问题描述

问题的具体描述
随便一个html5的页面,做子应用,页面正常加载,但会报这个错误,我看是 microAPP自己虚拟的一个内存地址
(function(window,self,global,location){;
class reloadPlugin {
reload(path, options){
return decodeURIComponent(Dcloud_Html_preview_filename) !== path;
}
}
if (LiveReload){//这里报错
LiveReload.addPlugin(reloadPlugin)
}

}).call(window.MICRO_APP_SANDBOX.proxyWindow,window.MICRO_APP_SANDBOX.proxyWindow,window.MICRO_APP_SANDBOX.proxyWindow,window.MICRO_APP_SANDBOX.proxyWindow,window.MICRO_APP_SANDBOX.proxyLocation);

复现步骤

上传截图

请上传代码截图、控制台、终端等截图以帮助我们了解您的问题。

复现仓库

请提供一个精简的代码仓库,然后上传到自己的 github,以帮助我们复现您的问题。

环境信息

  • micro-app版本:
  • 主应用前端框架&版本:
  • 子应用前端框架&版本:
  • 构建工具&版本:
@timhub66 timhub66 added the Need Reproduction 需要复现步骤 label Sep 23, 2024
Copy link

Hello @306416836. In order to facilitate location and troubleshooting, we need you to provide a realistic GitHub repository.
您好 @306416836, 为了方便定位和排查问题,我们需要您提供一个重现实例,请提供一个尽可能精简的 GitHub 仓库地址。

Copy link

github-actions bot commented Oct 1, 2024

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,若有任何问题,可评论回复。

@github-actions github-actions bot closed this as completed Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Need Reproduction 需要复现步骤
Projects
None yet
Development

No branches or pull requests

2 participants