11ty deployment fails

The 11ty Github CICD deployment stopped building. However, it builds perfectly locally on node 18/20/22

[10:02:42.998] Running build in Washington, D.C., USA (East) – iad1
[10:02:43.152] Cloning github.com/dokluch/gifgun2_website (Branch: main, Commit: a3d33aa)
[10:02:43.703] Previous build cache not available
[10:02:47.789] Cloning completed: 4.637s
[10:02:48.272] Running "vercel build"
[10:02:48.718] Vercel CLI 37.14.0
[10:02:49.411] Warning: Detected "engines": { "node": ">=20" } in your `package.json` that will automatically upgrade when a new major Node.js Version is released. Learn More: http://vercel.link/node-version
[10:02:49.416] Running "install" command: `pnpm install`...
[10:02:49.942]  WARN  GET https://registry.npmjs.org/@11ty%2Feleventy error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
[10:02:49.944]  WARN  GET https://registry.npmjs.org/@fontsource%2Fmontserrat error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
[10:02:49.944]  WARN  GET https://registry.npmjs.org/@fontsource%2Fopen-sans error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
[10:02:49.945]  WARN  GET https://registry.npmjs.org/twitter-text error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
[10:02:59.943]  WARN  GET https://registry.npmjs.org/@11ty%2Feleventy error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
[10:02:59.944]  WARN  GET https://registry.npmjs.org/@fontsource%2Fmontserrat error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
[10:02:59.944]  WARN  GET https://registry.npmjs.org/@fontsource%2Fopen-sans error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
[10:02:59.946]  WARN  GET https://registry.npmjs.org/twitter-text error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
[10:03:59.973]  ERR_PNPM_META_FETCH_FAIL  GET https://registry.npmjs.org/@11ty%2Feleventy: Value of "this" must be of type URLSearchParams
[10:03:59.982] Error: Command "pnpm install" exited with 1
[10:04:00.965] 

Github cicd pipeline fails

Deployment URL or Custom Domain: gifgun.io
Environment (local, preview, production): production
Project Framework: 11ty
Build Settings:
  Framework Preset: 11ty
  Build Command (if not default): pnpm build
  Output Directory (if not default): dist
  Install Command (if not default): pnpm install
Node/Runtime Version: >=20
Package Manager: pnpm
Relevant Packages:
  - @11ty/eleventy: 3.0.0
  - @fontsource/montserrat: 5.0.5
  - @fontsource/open-sans: 5.0.5
  - twitter-text: 3.1.0

UPD: changing pnpm to npm helped

1 Like

Thanks for sharing your solution, @dokluch!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.