@ignaciodev I run Laravel projects, and Vite, on both Intels and an M2 MacBook Pros, and never had an issue.
Can you show a screenshot of the errors in the Safari web inspector console?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
On a fresh Laravel installation (with Laravel Breeze React), when I run npm run dev, and visit http://localhost, everything works great on Chrome. But on Safari it never works. All I see is a blank screen, and this on the console:
[Error] Failed to load resource: bad URL (@react-refresh, line 0)
[Error] Failed to load resource: bad URL (app.jsx, line 0)
[Error] Failed to load resource: bad URL (Welcome.jsx, line 0)
[Error] Failed to load resource: bad URL (client, line 0)
My Mac is only 1 year old, very up to date.
I found a workaround by modifying my vite.config.js adding this before plugins:
server: {
hmr: {
host: 'localhost',
},
},
It now renders on Safari.
Please or to participate in this conversation.