@netlify/vite-plugin-tanstack-start' breaking hmr refresh?
Hi,
A strange error where
netlify() is breaking react refresh HMR. vite.config.js:
The console whenever there is a code change despite only referencing in the vite.config.js once and as per the docs. (After start() and before react()). :
9:45:57 AM [vite] ⬥ Netlify ⚠ Warning: Multiple instances of @netlify/vite-plugin have been loaded. This may cause unexpected behavior if the plugin is configured differently in each instance. If you have one instance of this plugin in your Vite config, you may safely remove it.In the web browser console there is a message about GET http://localhost:5173/@react-refresh returning a 404. This is confirmed by As soon as I remove the
netlify() plugin it works again. Again, this "was" working previously....
Has anyone else seen this?3 Replies
rival-black•2mo ago
@Netlify (Partner)
inland-turquoise•2mo ago
Thanks for the ping, Manuel! I've sent this onto our engineering team.
sensitive-blue•2mo ago
Hey there @Jingle Bells. Sorry for the delay. I haven't been able to reproduce this. Are you still seeing this issue with the latest version of TanStack Start and the Netlify plugin?
btw the
Warning: Multiple instances of @netlify/vite-plugin have been loaded warning is unrelated. It looks like it happens when a change is made to the vite.config.ts itself while running the dev server. It's a false positive warning. I'll get that fixed. Thanks for spotting that!