callstack / callstack/super-app-example

ReferenceError: Property 'HMRClient' doesn't exist

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
40
Forks
23
PR merge metrics
No merged PRs in 30d

Description

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)

Contributor guide

Open the contributing guide

Research direction

Reproduce the Windows setup for Re.Pack in the host-app and mini-app, then inspect node_modules/@callstack/repack/dist/modules/WebpackHMRClient.js at the failing HMRClient reference. Use the Android emulator and the reported bundle URL while checking the setup steps; done means the app starts without the ReferenceError.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, react-native, webpack
Domain
build-system, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.