vikejs / vike

🔨 Flexible, lean, community-driven, dependable, fast Vite-based frontend framework.
https://vike.dev
MIT License
4.37k stars 350 forks source link

[vike@0.4.201][Bug] You stumbled upon a Vike bug. #1962

Open Plajer opened 3 hours ago

Plajer commented 3 hours ago

Description

Received such error via Sentry

Firefox_Screenshot_2024-11-16T23-41-19 610Z

No more context available.

brillout commented 3 hours ago

Are you, or one of your libraries, using history.pushState() or history.replaceState()?

Plajer commented 3 hours ago

Maybe Swiper.js does such things under the hood. It is used to display swipeable cards linking to other pages. If so should I seek to override to change the logic to something else?

brillout commented 3 hours ago

Any history.pushState()/history.replaceState() call should called after Vike monkey patches both.

Keep us updated. At least the error message should be improved.