Skip to content
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

netlify deploy with pnpm install on Windows breaks Astro site SSR #7020

Open
codemonkeynorth opened this issue Feb 1, 2025 · 1 comment
Open
Labels
type: bug code to address defects in shipped code

Comments

@codemonkeynorth
Copy link

codemonkeynorth commented Feb 1, 2025

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-hoist doesn't work either here)
  • netlify build
  • netlify 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
@codemonkeynorth codemonkeynorth added the type: bug code to address defects in shipped code label Feb 1, 2025
@codemonkeynorth
Copy link
Author

worth noting that if I build/deploy it it via wsl (Linux Subsystem on Windows 11) on the same PC it works fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

No branches or pull requests

1 participant