Vercel Serverless - astro build fails with "Cannot use import statement outside a module" #6299
Labels
- P4: important
Violate documented behavior or significantly impacts performance (priority)
What version of
astro
are you using?2.0.14
Are you using an SSR adapter? If so, which one?
Vercel
What package manager are you using?
npm
What operating system are you using?
Mac
Describe the Bug
I recently switched from the Edge Vercel adapter to the Serverless Vercel adapter, and I notice the
astro build
command is now failing.The error seems to happen during the prerendering phase.
The stacktrace points to
dist/index.js
, which is a generated file by Astro I suppose, so not sure how this can be fixed.My codesandbox didn't want to work when sharing it, so I just added the Github link to the right branch.
Link to Minimal Reproducible Example
https://github.com/thomasledoux1/website-thomas-astro/tree/feature/add-auth-comment-overview
Participation
The text was updated successfully, but these errors were encountered: