Repository: vikejs/vike

Issue #874: Error when add route property to +config.ts
Created: 2023-05-10T07:14:22Z
Description
I removed the +route.ts and added route: '/*' to the +config.ts and stumbled on this error
Error: [vite-plugin-ssr@0.4.123][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 stack trace is usually enough to fix the problem). A maintainer will fix the bug (usually under 24 hours). Don't hesitate to reach out as it makes vite-plugin-ssr more robust.
    at C:\Users\royni\source\repos\Sodra.Common.EpiServer.Website\Sodra.EK.WebSite.Web\WebUI\node_modules\vite-plugin-ssr\dist\cjs\shared\getPageFiles\assertPageConfigs.js:45:32
    at Array.forEach (<anonymous>)
    at assertConfigElements (C:\Users\royni\source\repos\Sodra.Common.EpiServer.Website\Sodra.EK.WebSite.Web\WebUI\node_modules\vite-plugin-ssr\dist\cjs\shared\getPageFiles\assertPageConfigs.js:29:36)
    at C:\Users\royni\source\repos\Sodra.Common.EpiServer.Website\Sodra.EK.WebSite.Web\WebUI\node_modules\vite-plugin-ssr\dist\cjs\shared\getPageFiles\assertPageConfigs.js:19:9
    at Array.forEach (<anonymous>)
    at assertPageConfigs (C:\Users\royni\source\repos\Sodra.Common.EpiServer.Website\Sodra.EK.WebSite.Web\WebUI\node_modules\vite-plugin-ssr\dist\cjs\shared\getPageFiles\assertPageConfigs.js:10:17)
    at parseGlobResults (C:\Users\royni\source\repos\Sodra.Common.EpiServer.Website\Sodra.EK.WebSite.Web\WebUI\node_modules\vite-plugin-ssr\dist\cjs\shared\getPageFiles\parseGlobResults.js:32:47)
    at setPageFiles (C:\Users\royni\source\repos\Sodra.Common.EpiServer.Website\Sodra.EK.WebSite.Web\WebUI\node_modules\vite-plugin-ssr\dist\cjs\shared\getPageFiles\setPageFiles.js:9:98)
    at globalObject.pageFilesGetter (C:\Users\royni\source\repos\Sodra.Common.EpiServer.Website\Sodra.EK.WebSite.Web\WebUI\node_modules\vite-plugin-ssr\dist\cjs\shared\getPageFiles\setPageFiles.js:17:9)
    at async getPageFilesAll (C:\Users\royni\source\repos\Sodra.Common.EpiServer.Website\Sodra.EK.WebSite.Web\WebUI\node_modules\vite-plugin-ssr\dist\cjs\shared\getPageFiles\setPageFiles.js:32:13)
    at async getRenderContext (C:\Users\royni\source\repos\Sodra.Common.EpiServer.Website\Sodra.EK.WebSite.Web\WebUI\node_modules\vite-plugin-ssr\dist\cjs\node\runtime\renderPage\renderPageContext.js:144:73)
    at async renderPage (C:\Users\royni\source\repos\Sodra.Common.EpiServer.Website\Sodra.EK.WebSite.Web\WebUI\node_modules\vite-plugin-ssr\dist\cjs\node\runtime\renderPage.js:25:25)
    at async C:\Users\royni\source\repos\Sodra.Common.EpiServer.Website\Sodra.EK.WebSite.Web\WebUI\node_modules\vite-plugin-ssr\dist\cjs\node\plugin\shared\addSsrMiddleware.js:31:27


The highlighted file in the pic is the one I added route property.

Duplicate issue #891: Error when upgrade Vue to 3.3.x
Created: 2023-05-17T12:28:35Z
Description
Error: [vite-plugin-ssr@0.4.123][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 stack trace is usually enough to fix the problem). A maintainer will fix the bug (usually under 24 hours). Don't hesitate to reach out as it makes vite-plugin-ssr more robust.
    at C:\Users\royni\source\repos\Sodra.Common.EpiServer.Website\Sodra.EK.WebSite.Web\WebUI\node_modules\vite-plugin-ssr\dist\cjs\shared\getPageFiles\assertPageConfigs.js:45:32
    at Array.forEach (<anonymous>)
    at assertConfigElements (C:\Users\royni\source\repos\Sodra.Common.EpiServer.Website\Sodra.EK.WebSite.Web\WebUI\node_modules\vite-plugin-ssr\dist\cjs\shared\getPageFiles\assertPageConfigs.js:29:36)
    at C:\Users\royni\source\repos\Sodra.Common.EpiServer.Website\Sodra.EK.WebSite.Web\WebUI\node_modules\vite-plugin-ssr\dist\cjs\shared\getPageFiles\assertPageConfigs.js:19:9
    at Array.forEach (<anonymous>)
    at assertPageConfigs (C:\Users\royni\source\repos\Sodra.Common.EpiServer.Website\Sodra.EK.WebSite.Web\WebUI\node_modules\vite-plugin-ssr\dist\cjs\shared\getPageFiles\assertPageConfigs.js:10:17)
    at parseGlobResults (C:\Users\royni\source\repos\Sodra.Common.EpiServer.Website\Sodra.EK.WebSite.Web\WebUI\node_modules\vite-plugin-ssr\dist\cjs\shared\getPageFiles\parseGlobResults.js:32:47)
    at setPageFiles (C:\Users\royni\source\repos\Sodra.Common.EpiServer.Website\Sodra.EK.WebSite.Web\WebUI\node_modules\vite-plugin-ssr\dist\cjs\shared\getPageFiles\setPageFiles.js:9:98)
    at globalObject.pageFilesGetter (C:\Users\royni\source\repos\Sodra.Common.EpiServer.Website\Sodra.EK.WebSite.Web\WebUI\node_modules\vite-plugin-ssr\dist\cjs\shared\getPageFiles\setPageFiles.js:17:9)
    at async getPageFilesAll (C:\Users\royni\source\repos\Sodra.Common.EpiServer.Website\Sodra.EK.WebSite.Web\WebUI\node_modules\vite-plugin-ssr\dist\cjs\shared\getPageFiles\setPageFiles.js:32:13)
    at async getRenderContext (C:\Users\royni\source\repos\Sodra.Common.EpiServer.Website\Sodra.EK.WebSite.Web\WebUI\node_modules\vite-plugin-ssr\dist\cjs\node\runtime\renderPage\renderPageContext.js:144:73)
    at async renderPage (C:\Users\royni\source\repos\Sodra.Common.EpiServer.Website\Sodra.EK.WebSite.Web\WebUI\node_modules\vite-plugin-ssr\dist\cjs\node\runtime\renderPage.js:25:25)
    at async C:\Users\royni\source\repos\Sodra.Common.EpiServer.Website\Sodra.EK.WebSite.Web\WebUI\node_modules\vite-plugin-ssr\dist\cjs\node\plugin\shared\addSsrMiddleware.js:31:27
Error: [vite-plugin-ssr@0.4.123][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 stack trace is usually enough to fix the problem). A maintainer will fix the bug (usually under 24 hours). Don't hesitate to reach out as it makes vite-plugin-ssr more robust.
    at C:\Users\royni\source\repos\Sodra.Common.EpiServer.Website\Sodra.EK.WebSite.Web\WebUI\node_modules\vite-plugin-ssr\dist\cjs\shared\getPageFiles\assertPageConfigs.js:45:32
    at Array.forEach (<anonymous>)
    at assertConfigElements (C:\Users\royni\source\repos\Sodra.Common.EpiServer.Website\Sodra.EK.WebSite.Web\WebUI\node_modules\vite-plugin-ssr\dist\cjs\shared\getPageFiles\assertPageConfigs.js:29:36)
    at C:\Users\royni\source\repos\Sodra.Common.EpiServer.Website\Sodra.EK.WebSite.Web\WebUI\node_modules\vite-plugin-ssr\dist\cjs\shared\getPageFiles\assertPageConfigs.js:19:9
    at Array.forEach (<anonymous>)
    at assertPageConfigs (C:\Users\royni\source\repos\Sodra.Common.EpiServer.Website\Sodra.EK.WebSite.Web\WebUI\node_modules\vite-plugin-ssr\dist\cjs\shared\getPageFiles\assertPageConfigs.js:10:17)
    at parseGlobResults (C:\Users\royni\source\repos\Sodra.Common.EpiServer.Website\Sodra.EK.WebSite.Web\WebUI\node_modules\vite-plugin-ssr\dist\cjs\shared\getPageFiles\parseGlobResults.js:32:47)
    at setPageFiles (C:\Users\royni\source\repos\Sodra.Common.EpiServer.Website\Sodra.EK.WebSite.Web\WebUI\node_modules\vite-plugin-ssr\dist\cjs\shared\getPageFiles\setPageFiles.js:9:98)
    at globalObject.pageFilesGetter (C:\Users\royni\source\repos\Sodra.Common.EpiServer.Website\Sodra.EK.WebSite.Web\WebUI\node_modules\vite-plugin-ssr\dist\cjs\shared\getPageFiles\setPageFiles.js:17:9)
    at async getPageFilesAll (C:\Users\royni\source\repos\Sodra.Common.EpiServer.Website\Sodra.EK.WebSite.Web\WebUI\node_modules\vite-plugin-ssr\dist\cjs\shared\getPageFiles\setPageFiles.js:32:13)
    at async getRenderContext (C:\Users\royni\source\repos\Sodra.Common.EpiServer.Website\Sodra.EK.WebSite.Web\WebUI\node_modules\vite-plugin-ssr\dist\cjs\node\runtime\renderPage\renderPageContext.js:144:73)
    at async renderPage (C:\Users\royni\source\repos\Sodra.Common.EpiServer.Website\Sodra.EK.WebSite.Web\WebUI\node_modules\vite-plugin-ssr\dist\cjs\node\runtime\renderPage.js:25:25)
    at async C:\Users\royni\source\repos\Sodra.Common.EpiServer.Website\Sodra.EK.WebSite.Web\WebUI\node_modules\vite-plugin-ssr\dist\cjs\node\plugin\shared\addSsrMiddleware.js:31:27

Closing comment (2023-05-17T12:35:43Z): It's the same as #874.
Use 0.4.123-draft.47582 until a new version is released. (Make sure to set "vite-plugin-ssr": "0.4.123-draft.47582" instead of "vite-plugin-ssr": "^0.4.123-draft.47582" in your package.json.)