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

Initial React Native HMR prints an error #315

Open
kraenhansen opened this issue Dec 17, 2024 · 0 comments
Open

Initial React Native HMR prints an error #315

kraenhansen opened this issue Dec 17, 2024 · 0 comments

Comments

@kraenhansen
Copy link

Performing a change to an app running on iOS via the Expo Go app from the minimal template, I see this error on the first change to the index.tsx:

✓ built in 2.44s
 ①    ⓵ [hmr] connecting...
 ①    ⓵ [hmr] connected
 ①   [log] Running "main" with {"rootTag":11,"initialProps":{"exp":{"appOwnership":"expo","initialUri":"exp://192.168.1.194:8081/","shell":0,"manifestString":"{\"launchAsset\":{\"key\":\"bundle\",\"contentType\":\"application\\/javascript\",\"url\":\"http:\\/\\/192.168.1.194:8081\\/index.bundle?platform=ios&dev=true&hot=false&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app\"},\"assets\":[],\"createdAt\":\"2024-12-17T22:24:46.564Z\",\"isVerified\":true,\"metadata\":{},\"runtimeVersion\":\"exposdk:51.0.0\",\"extra\":{\"eas\":{},\"scopeKey\":\"@anonymous\\/hello-world-6c78aead-4a7f-4803-a351-3c3d69c6955c\",\"expoClient\":{\"version\":\"1.1.345-1734464750388\",\"_internal\":{\"packageJsonPath\":\"\\/Users\\/kraen.hansen\\/Repositories\\/hello-world\\/package.json\",\"projectRoot\":\"\\/Users\\/kraen.hansen\\/Repositories\\/hello-world\",\"staticConfigPath\":\"\\/Users\\/kraen.hansen\\/Repositories\\/hello-world\\/app.json\",\"isDebug\":false,\"dynamicConfigPath\":{}},\"ios\":{},\"hostUri\":\"192.168.1.194:8081\",\"plugins\":[\"vxrn\\/expo-plugin\"],\"icon\":\".\\/public\\/app-icon.png\",\"slug\":\"hello-world\",\"splash\":{\"resizeMode\":\"contain\",\"backgroundColor\":\"#000000\",\"image\":\"__vxrn_unstable_internal\\/icon.png\",\"imageUrl\":\"https:\\/\\/github.com\\/user-attachments\\/assets\\/e816c207-e7d2-4c2e-8aa5-0d4cbaa622bf\"},\"platforms\":[\"ios\",\"android\"],\"iconUrl\":\"https:\\/\\/github.com\\/user-attachments\\/assets\\/6894506b-df81-417c-a4cd-9c125c7ba37f\",\"sdkVersion\":\"51.0.0\",\"name\":\"hello-world\"},\"expoGo\":{\"developer\":{\"projectRoot\":\"\\/Users\\/kraen.hansen\\/Repositories\\/hello-world\",\"tool\":\"expo-cli\"},\"__flipperHack\":\"React Native packager is running\",\"mainModuleName\":\"node_modules\\/expo\\/AppEntry\",\"packagerOpts\":{\"dev\":true},\"debuggerHost\":\"192.168.1.194:8081\"}},\"id\":\"6e28f234-0c46-4917-8745-fe96bb52f16f\"}"}}}
 ①   [vite] connected.
11:25:00 PM [vite] (client) hmr update /app/index.tsx
11:25:00 PM [vite] (ssr) page reload app/index.tsx
[vite] program reload
[vite] An error happened during full reload
[vite] cannot find entry point module 'virtual:one-entry'.
Error: [vite] cannot find entry point module 'virtual:one-entry'.
    at fetchModule (file:///Users/kraen.hansen/Repositories/hello-world/node_modules/vite/dist/node/chunks/dep-yUJfKD1i.js:51161:13)
    at async handleInvoke (file:///Users/kraen.hansen/Repositories/hello-world/node_modules/vite/dist/node/chunks/dep-yUJfKD1i.js:43945:22)
    at async EventEmitter.listenerForInvokeHandler (file:///Users/kraen.hansen/Repositories/hello-world/node_modules/vite/dist/node/chunks/dep-yUJfKD1i.js:44018:19)
 ①    ❶ hmr fetching update: http://192.168.1.194:8081/file?file=%2Fapp%2Findex.tsx&t=1734474300716

Screenshot 2024-12-17 at 23 27 18

Subsequent updates are fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant