vike: [Error] ReferenceError: Can't find variable: global
Description
Hello,
I’m migrating my next.js app to vps. I set clientRouting = true and use navigate('<url>') to make redirect to other page. But I got error below
Error Message + Error Stack
[Error] Unhandled Promise Rejection: Error: [vite-plugin-ssr@0.4.115][Bug] You stumbled upon a bug in vite-plugin-ssr's source code. Go to https://github.com/brillout/vite-plugin-ssr/issues/new and copy-paste this error. (The error's sta...
(anonymous function) (useClientRouter.js:191)
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 18 (11 by maintainers)
Commits related to this issue
- fix: always set `pageContext.is404` when rendering error page on the client-side (fix #806) — committed to vikejs/vike by brillout a year ago
In case you need it, the fix is released in
0.4.115-draft.64315.From first sight I don’t see any problems with your code. So, yea, I’m afraid I’ll need a reproduction. Feel free to invite me to a private repo.