You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ssr] Error: Expected an exported Astro component but received typeof undefined
at renderPage (file:///var/task/vercel/path0/dist/chunks/entrypoint_eea6d45b.mjs:579:11)
at #tryRenderRoute (file:///var/task/vercel/path0/dist/chunks/entrypoint_eea6d45b.mjs:774:24)
at SSRRoutePipeline.renderRoute (file:///var/task/vercel/path0/dist/chunks/entrypoint_eea6d45b.mjs:721:46)
at App.render (file:///var/task/vercel/path0/dist/chunks/entrypoint_eea6d45b.mjs:934:39)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.handler (file:///var/task/vercel/path0/dist/chunks/entrypoint_eea6d45b.mjs:1317:33)
at async Server.<anonymous> (/var/task/___vc/__launcher.js:82:14)
It appears if you have multiple files with the same filename (e.g. [slug].astro) yet in separate directories then the dynamic route fails.
What's the expected result?
I should be able to have multiple dynamic routes under different directories. e.g. /blog
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Dynamic routes throw an error when deploying to Vercel.
https://astro-vercel-ssr-error.vercel.app/
https://astro-vercel-ssr-error.vercel.app/blog/blog-post-1
It appears if you have multiple files with the same filename (e.g. [slug].astro) yet in separate directories then the dynamic route fails.
What's the expected result?
I should be able to have multiple dynamic routes under different directories. e.g. /blog
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-yrtccw
Participation
The text was updated successfully, but these errors were encountered: