Closed NotNullDev closed 1 month ago
It seems like you're trying to use prefetch(url, { pageContext: true })
? It isn't supported yet. If you remove the { pageContext: true }
option then the error should go away.
Let me know if you're still having any issues then.
Possibly related: https://github.com/vikejs/vike/issues/1920.
Description
error from console:
Uncaught (in promise) Error: [vike@0.4.198][Bug] You stumbled upon a Vike bug. Go to https://github.com/vikejs/vike/issues/new and copy-paste this error. A maintainer will fix the bug (usually under 24 hours). at createErrorWithCleanStackTrace (createErrorWithCleanStackTrace.js?v=4b702f4d:4:17) at assert (assert.js?v=4b702f4d:54:27) at setPageContextPrefetchCache (prefetch.js?v=4b702f4d:73:5) at prefetchPageContextFromServerHooks (prefetch.js?v=4b702f4d:61:5) at async prefetch.js?v=4b702f4d:212:21 at async Promise.all (:3000/index 1) at async prefetchOnEvent (prefetch.js?v=4b702f4d:199:5)
it seems to appear before vite optimize all dependencies and I try to go to another page (in this case also page sometime freezes)
ubuntu 22.04 brave browser bun + hono