Repository: vikejs/vike

Issue #1232: I was told to report a bug
Created: 2023-11-02T00:20:25Z
Description
  [vike@0.4.143][request(3)][Bug] You stumbled upon a bug in Vike's source code. 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 file:///projectdirectory/node_modules/vike/dist/esm/node/runtime/html/serializePageContextClientSide.js:49:17
  at Array.forEach (<anonymous>)
at serializePageContextClientSide (file:///projectdirectory/node_modules/vike/dist/esm/node/runtime/html/serializePageContextClientSide.js:40:22)
at getPageContextTag (file:///projectdirectory/node_modules/vike/dist/esm/node/runtime/html/injectAssets/getHtmlTags.js:127:48)
at htmlTag (file:///projectdirectory/node_modules/vike/dist/esm/node/runtime/html/injectAssets/getHtmlTags.js:113:28)
at resolveHtmlTag (file:///projectdirectory/node_modules/vike/dist/esm/node/runtime/html/injectAssets/injectHtmlTags.js:54:42)
at file:///projectdirectory/node_modules/vike/dist/esm/node/runtime/html/injectAssets/injectHtmlTags.js:13:25
  at Array.map (<anonymous>)
at file:///projectdirectory/node_modules/vike/dist/esm/node/runtime/html/injectAssets/injectHtmlTags.js:13:14
  at Array.forEach (<anonymous>)
at injectHtmlTags (file:///projectdirectory/node_modules/vike/dist/esm/node/runtime/html/injectAssets/injectHtmlTags.js:10:15)
at injectToHtmlBegin (file:///projectdirectory/node_modules/vike/dist/esm/node/runtime/html/injectAssets.js:41:17)
at injectHtmlTagsToString (file:///projectdirectory/node_modules/vike/dist/esm/node/runtime/html/injectAssets.js:11:18)
at renderDocumentHtml (file:///projectdirectory/node_modules/vike/dist/esm/node/runtime/html/renderHtml.js:38:32)
at executeOnRenderHtmlHook (file:///projectdirectory/node_modules/vike/dist/esm/node/runtime/renderPage/executeOnRenderHtmlHook.js:33:24)
at renderPageAlreadyRouted (file:///projectdirectory/node_modules/vike/dist/esm/node/runtime/renderPage/renderPageAlreadyRouted.js:56:30)
at renderPageNominal (file:///projectdirectory/node_modules/vike/dist/esm/node/runtime/renderPage.js:257:36)
at renderPageAlreadyPrepared (file:///projectdirectory/node_modules/vike/dist/esm/node/runtime/renderPage.js:113:45)
at renderPageAndPrepare (file:///projectdirectory/node_modules/vike/dist/esm/node/runtime/renderPage.js:93:12)
at file:///projectdirectory/node_modules/vike/dist/esm/node/plugin/shared/getHttpRequestAsyncStore.js:68:35
  at renderPage (file:///projectdirectory/node_modules/vike/dist/esm/node/runtime/renderPage.js:46:50)
at file:///projectdirectory/server/index.ts:53:29

Duplicate issue #1237: Unhandled Exception....
Created: 2023-11-03T19:05:08Z
Description
1:56:03 PM [vike][request(2)] HTTP response /mushrooms/species 200
Error: [vike@0.4.144][Bug] You stumbled upon a bug in Vike's source code. 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 file:///.../node_modules/vike/dist/esm/node/runtime/html/serializePageContextClientSide.js:49:17
at Array.forEach ()
at serializePageContextClientSide (file:///.../node_modules/vike/dist/esm/node/runtime/html/serializePageContextClientSide.js:40:22)
at getPageContextTag (file:///.../node_modules/vike/dist/esm/node/runtime/html/injectAssets/getHtmlTags.js:127:48)
at htmlTag (file:///.../node_modules/vike/dist/esm/node/runtime/html/injectAssets/getHtmlTags.js:113:28)
at resolveHtmlTag (file:///.../node_modules/vike/dist/esm/node/runtime/html/injectAssets/injectHtmlTags.js:54:42)
at file:///.../node_modules/vike/dist/esm/node/runtime/html/injectAssets/injectHtmlTags.js:13:25
at Array.map ()
at file:///.../node_modules/vike/dist/esm/node/runtime/html/injectAssets/injectHtmlTags.js:13:14
at Array.forEach ()
at injectHtmlTags (file:///.../node_modules/vike/dist/esm/node/runtime/html/injectAssets/injectHtmlTags.js:10:15)
at injectToHtmlEnd (file:///.../node_modules/vike/dist/esm/node/runtime/html/injectAssets.js:46:15)
at injectAtStreamEnd (file:///.../node_modules/vike/dist/esm/node/runtime/html/injectAssets.js:33:19)
at injectStringAtEnd (file:///.../node_modules/vike/dist/esm/node/runtime/html/renderHtml.js:70:24)
at onEnd (file:///.../node_modules/vike/dist/esm/node/runtime/html/stream.js:263:39)
at Writable.destroy [as _destroy] (file:///.../node_modules/vike/dist/esm/node/runtime/html/stream.js:398:21)
Error: [vike@0.4.144][Bug] You stumbled upon a bug in Vike's source code. 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 onEnd (file:///.../node_modules/vike/dist/esm/node/runtime/html/stream.js:275:21)
at Writable.destroy [as _destroy] (file:///.../node_modules/vike/dist/esm/node/runtime/html/stream.js:398:21)

Closing comment (2023-11-03T19:30:42Z): Seems to be a duplicate of #1232.
Try 0.4.144-commit-f7ab002 and let me know if you still get the/an issue and I'll re-open.