netlify deploy with pnpm install on Windows breaks Astro site SSR
Open
Nobody has claimed this yet.
area: os: windows
type: bug
- Dominant language
- TypeScript
- Stars
- 1.9k
- Forks
- 474
- Avg merge
- 23h 30m
- Merged PRs (30d)
- 53
Description
Describe the bug
when using pnpm install and netlify deploy viewing site shows error decoding lambda response: error decoding lambda response: unexpected end of JSON input
this works fine though when using npm install or building though CI from a github push
Steps to reproduce
- create a basic astro site with SSR
(output: "server") pnpm install(--shamefully-hoistdoesn't work either here)netlify buildnetlify deploy
Configuration
[build]
command = "pnpm run build"
publish = "dist"
Environment
System:
OS: Windows 11 10.0.26100
CPU: (12) x64 Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
Memory: 6.77 GB / 15.91 GB
Binaries:
Node: 22.13.1 - ~\AppData\Local\fnm_multishells\21492_1738563419315\node.EXE
Yarn: 1.22.22 - ~\AppData\Local\pnpm\yarn.CMD
npm: 10.9.2 - ~\AppData\Local\fnm_multishells\21492_1738563419315\npm.CMD
pnpm: 9.15.4 - ~\AppData\Local\fnm_multishells\21492_1738563419315\pnpm.CMD
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue on Windows 11 with an Astro SSR site using pnpm install, netlify build, and netlify deploy, then compare the result with npm install and a GitHub-push build. Start by tracing the CLI's build and deploy handling for pnpm-based projects; done means the deployed SSR site loads without the lambda JSON decoding error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100