ArcherGu / fast-vite-nestjs-electron

Vite + Vue + Electron + Nestjs with esbuild, crazy fast! ⚡

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DS_RENDERER_URL should be defined in code or readme

isnolan opened this issue · comments

? process.env.DS_RENDERER_URL

Clone the repo, npm run dev won't be work, DS_RENDERER_URL should be defined in code or readme.

Hi, can you provide more detailed error information? Because it works fine on my pc.

process.env.DS_RENDERER_URL is actually the dev mode address in Vite, vite-plugin-doubleshot will set the address to DS_RENDERER_URL.

Hi, can you provide more detailed error information? Because it works fine on my pc.

process.env.DS_RENDERER_URL is actually the dev mode address in Vite, vite-plugin-doubleshot will set the address to DS_RENDERER_URL.

On my MBP(m1), it will get a white screen page, which is caused by the above reason.

Screenshot 2023-01-30 at 22 14 23

I opened my dusty MBP 😂 and found the problem. The vite dev server preferentially provides an IPv6 address (of course, IPv4 is still valid), so we need to set the DS_RENDERER_URL with a URL in IPv6 format.

Please pull/clone this repo again and update dependencies, then run it.

doubleshot/fix(plugin-vite): handle ipv6 address

Wow, your MBP doesn't even have time to get dusty.