You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The methods described in this document does not mark HMR work on mobile devices.
Because Nuxt does not use vite's HMR config. Nuxt rewrite vite config, and uses ws://$host:$port/_nuxt/ to provide HMR:
09-27 18:01:57.473 9019 9019 E Tauri/Console: File: http://tauri.localhost/_nuxt/@vite/client - Line 535 - Msg: WebSocket connection to 'ws://tauri.localhost/_nuxt/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
09-27 18:01:57.473 9019 9019 E Tauri/Console: File: http://tauri.localhost/_nuxt/@vite/client - Line 535 - Msg: Uncaught (in promise) SyntaxError: Failed to construct 'WebSocket': The URL 'ws://localhost:undefined/_nuxt/' is invalid.
It tries to connect to localhost:undefined and tauri.localhost, but this is incorrect.
All endpoints have been tried and there is no WebSocket support. This may require a direct connection to the host.
Describe the bug
The methods described in this document does not mark HMR work on mobile devices.
Because Nuxt does not use vite's HMR config. Nuxt rewrite vite config, and uses
ws://$host:$port/_nuxt/
to provide HMR:It tries to connect to
localhost:undefined
andtauri.localhost
, but this is incorrect.All endpoints have been tried and there is no WebSocket support. This may require a direct connection to the host.
Reproduction
From official document: https://v2.tauri.app/start/frontend/nuxt/
adb devices # connect a Android devices ... pnpm tauri android dev
If this is not detailed enough, please call me for reproduction.
Expected behavior
No error.
Full
tauri info
outputStack trace
Additional context
No response
The text was updated successfully, but these errors were encountered: