fgeierst / typo3-vite-demo

GNU General Public License v2.0
20 stars 5 forks source link

ViteFluid Plugin breaks routing on dev #28

Open fgeierst opened 1 year ago

fgeierst commented 1 year ago

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.

image
fgeierst commented 1 year ago

@misterboe maybe you have an idea about this? Thanks!

fgeierst commented 1 year ago

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

fgeierst commented 1 year ago

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