-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vercel deployments broken with pnpm #5020
Comments
Do you need to move that package into a regular (non dev) dependencies? |
Both |
@sammccord I've made a fix. Could you try it and tell me if it works? $ pnpm add @astrojs/vercel@next--monorepos |
Looks good to me! Thanks! <3 |
idk if it was removed in the latter releases and I have the same exact issue as this one. Followed the above instructions but still doesnt work. I have opened a new Issue |
I opened #9382 with my Vercel output and a screenshot |
What version of
astro
are you using?1.4.6
Are you using an SSR adapter? If so, which one?
Vercel
What package manager are you using?
pnpm
What operating system are you using?
Linux
Describe the Bug
When deploying an Astro site inside a pnpm monorepo to Vercel with the
@astrojs/vercel/serverless
adapter, the deployment succeeds, but all requests fail with 500 errors. See this deployed example - https://pnpm-astro.vercel.app/The only error being thrown in the logs is:
This is essentially a duplicate of #4567, but I'm re-opening this specifically for pnpm / Vercel functionality.
I'll also note that
shamefully-hoist=true
in the root.npmrc
doesn't seem to have any effect, even though it was fixed in>1.4.0
Link to Minimal Reproducible Example
https://github.com/sammccord/pnpm-astro
Participation
The text was updated successfully, but these errors were encountered: