Open fgeierst opened 1 year ago
@misterboe maybe you have an idea about this? Thanks!
As a workaround until this gets resolved, you can use vite-plugin-full-reload instead of the custom vite.fluid.js . See https://github.com/fgeierst/typo3-vite-demo/blob/c985a26af058abf806661abb07669025a1fe86b4/vite.config.js
The custom vite plugin is not working so for now I moved it into a separate branch: https://github.com/fgeierst/typo3-vite-demo/tree/feature/custom-vite-plugin-file-watcher
While the production build works fine, the development server has a routing issue. When the Vite dev server is active, it intercepts routing requests (user clicks on a link). The requested url shows for a brief split second in the network tab, but no navigation is happening in the browser. The issue seems to be related with the custom file watcher plugin ViteFluid. If the plugin is disabled, clicking on links works again.