AlexxNB / tinro

Highly declarative, tiny, dependency free router for Svelte's web applications.
MIT License
675 stars 30 forks source link

router.goto is not working with Vite #62

Closed silentworks closed 3 years ago

silentworks commented 3 years ago

I have a project where I'm using router.goto and it seems there is an issue with Vite when using this, I don't get an error but the url in the browser changes but the actual page doesn't load. I have attached a video showing this in action and here is also a link to a repo with the same code. https://github.com/silentworks/tinro-vite-svelte-issue

https://user-images.githubusercontent.com/79497/114796217-f0207b00-9d7f-11eb-84fb-51c31909ea58.mp4

AlexxNB commented 3 years ago

Hello, try this https://github.com/AlexxNB/tinro/issues/53#issuecomment-811205387

silentworks commented 3 years ago

Yeah, this fixed it. This should probably be added to a troubleshooting section of the README.md.

AlexxNB commented 3 years ago

I'll research a problem deeper, maybe I will get what Vite "optimize" in tinro and avoid this.