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
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
Hello,
i'm using vite with laravel 9.19 and laravel vite plugin (^0.7.0)
When i configure server.host with ipv6 (see reproduce) the final host does not contains [ ] aroud ip.
But i'ts works if ip is ::1
Generated http://2a00:1450:4007:81a::2003:5173/ instead of http://[2a00:1450:4007:81a::2003]:5173/
if i manualy change change url in my web page the ressource are loaded.
Reproduction
https://stackblitz.com/edit/vitejs-vite-pfb842?file=vite.config.js
Steps to reproduce
vite.config.js
starting message
VITE v3.2.5 ready in 1126 ms
➜ Local: http://2a00:1450:4007:81a::2003:5173/
➜ Network: http://192.168.0.41:5173/
the « local » url are used in web page. for example http://2a00:1450:4007:81a::2003:5173/@vite/client (ko).
The expected url is : http://[2a00:1450:4007:81a::2003]:5173/@vite/client
I'ts works with « ::1 »
I have
17:03:37 [vite] server restarted.
➜ Local: http://[::1]:5173/
System Info
npx envinfo --system --npmPackages '{vite,@vitejs/*}' --binaries --browsers System: OS: Linux 5.15 Debian GNU/Linux 11 (bullseye) 11 (bullseye) CPU: (4) arm64 Cortex-A72 Memory: 5.30 GB / 7.63 GB Container: Yes Shell: 5.1.4 - /bin/bash Binaries: Node: 18.12.1 - /usr/bin/node npm: 9.2.0 - /usr/bin/npm
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: