callstack / callstack/super-app-example

ReferenceError: Property 'HMRClient' doesn't exist

未关闭
#5 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
40
派生
23
PR 合并指标
30 天内没有已合并 PR

描述

I have done setup on my windows system and setup Repack on both host-app and mini-app by following all steps after running on emulator getting following error:

ReferenceError: Property 'HMRClient' doesn't exist
at ./node_modules/@callstack/repack/dist/modules/WebpackHMRClient.js (http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.hostapp&modulesOnly=false&runModule=true:1142:7)
at call (native)
at anonymous (http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.hostapp&modulesOnly=false&runModule=true:42524:35)
at call (native)
at __webpack_require__ (http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.hostapp&modulesOnly=false&runModule=true:41942:37)
at anonymous (http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.hostapp&modulesOnly=false&runModule=true:43429:30)
at global (http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.hostapp&modulesOnly=false&runModule=true:43433:12)
...
![error_emulator](https://github.com/callstack/super-app-example/assets/25630871/85e5bea6-dd9b-482c-a66c-aaaa045b2757)

贡献指南

打开贡献指南

调研方向

在 host-app 和 mini-app 中复现 Re.Pack 的 Windows 设置,然后检查 node_modules/@callstack/repack/dist/modules/WebpackHMRClient.js 中失败的 HMRClient 引用。在检查设置步骤时使用 Android 模拟器和报告的 bundle URL;完成的标准是应用能够在没有 ReferenceError 的情况下启动。

由索引模型根据 Issue 内容生成。

评估

技术栈
android, react-native, webpack
领域
build-system, mobile
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。