diff --git a/src/client/app/index.ts b/src/client/app/index.ts index 1f1e8069..761c2d92 100644 --- a/src/client/app/index.ts +++ b/src/client/app/index.ts @@ -131,7 +131,9 @@ function newRouter(): Router { } if (import.meta.env.DEV) { - pageModule = import(/*@vite-ignore*/ pageFilePath).catch(() => { + pageModule = import(/*@vite-ignore*/ pageFilePath).catch((e) => { + // page load could fail for other reasons, don't swallow + console.error(e) // try with/without trailing slash // in prod this is handled in src/client/app/utils.ts#pathToFile const url = new URL(pageFilePath!, 'http://a.com')