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
Hot Module Reloading does not work in the Brave browser normal tabs. However, it does work in Chrome and in Brave in private tabs. Not really a big issue, just a bit annoying.
The issue is probably caused by trying to construct a websocket on ws://localhost:undefined/ (see logs), which should have probably been localhost:5173.
Reproduction
cleared browser cache on localhost:5173
$pnpx sv create
$pnpm dev --open
open localhost:5173 in private tab too
edit +page.svelte and save
result: page in private tab changes instantly, in the normal tab it doesn't. (it does after refreshing)
Logs
--- VS Code console: ---
2:35:13 PM [vite] hmr update /src/routes/+page.svelte, /src/app.css (x12)
--- Brave normal tab console: ---
client:535 WebSocket connection to 'ws://localhost:5173/' failed:
setupWebSocket @ client:535
client:535 Uncaught (in promise) SyntaxError: Failed to construct 'WebSocket': The URL 'ws://localhost:undefined/' is invalid.
at setupWebSocket (client:535:19)
at fallback (client:508:16)
at WebSocket.<anonymous> (client:551:7)
client.js?v=fc83df29:2348
[svelte] binding_property_non_reactive
`bind:this={components[0]}` (.svelte-kit/generated/root.svelte:44:42) is binding to a non-reactive property
warn @ client.js?v=fc83df29:2348
client.js?v=fc83df29:2348
[svelte] binding_property_non_reactive
`bind:this={components[1]}` (.svelte-kit/generated/root.svelte:45:43) is binding to a non-reactive property
warn @ client.js?v=fc83df29:2348
--- Brave private tab console: ---
[svelte] binding_property_non_reactive`bind:this={components[0]}` (.svelte-kit/generated/root.svelte:44:42) is binding to a non-reactive property
warn @ client.js?v=fc83df29:2348
client.js?v=fc83df29:2348
[svelte] binding_property_non_reactive`bind:this={components[1]}` (.svelte-kit/generated/root.svelte:45:43) is binding to a non-reactive property
warn @ client.js?v=fc83df29:2348
I can't reproduce this with a new project and a fresh install of Brave on Windows 11. Do you have any extensions installed that could be causing this? It could by why it works in private mode where most extensions are disabled.
Describe the bug
Hot Module Reloading does not work in the Brave browser normal tabs. However, it does work in Chrome and in Brave in private tabs. Not really a big issue, just a bit annoying.
The issue is probably caused by trying to construct a websocket on ws://localhost:undefined/ (see logs), which should have probably been localhost:5173.
Reproduction
cleared browser cache on localhost:5173
$pnpx sv create
$pnpm dev --open
open localhost:5173 in private tab too
edit +page.svelte and save
result: page in private tab changes instantly, in the normal tab it doesn't. (it does after refreshing)
Logs
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: