Open thyngster opened 1 year ago
These are the current generated client variables:
// use server configuration, then fallback to inference
const serverHost = "localhost:undefined/";
const socketProtocol = null || (importMetaUrl.protocol === 'https:' ? 'wss' : 'ws');
const hmrPort = null;
const socketHost = `${"localhost" || importMetaUrl.hostname}:${hmrPort || importMetaUrl.port}${"/"}`;
const directSocketHost = "localhost:undefined/";
const base = "/" || '/';
Same problem!
Having this issue, using SvelteKit.
Build tool
Vite
Where do you see the problem?
Describe the bug
HRM_PORT is undefined, therefore the HRM doesn't work.
Reproduction
Just create a simple vite + crxjs project.
Created this repo for easing the testing task: https://github.com/thyngster/crxjs-vite430
Logs
System Info
Severity
annoyance