© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•4mo ago•
5 replies
wolf

After committing pnpm patch my build is failing

log:
Initializing build environment...
Success: Finished initializing build environment
Cloning repository...
Restoring from dependencies cache
Restoring from build output cache
Detected the following tools from environment: pnpm@10.11.1, nodejs@22.16.0
Installing project dependencies: pnpm install --frozen-lockfile
ERR_PNPM_LOCKFILE_CONFIG_MISMATCH  Cannot proceed with the frozen installation. The current "patchedDependencies" configuration doesn't match the value found in the lockfile
Update your lockfile using "pnpm install --no-frozen-lockfile"
Failed: error occurred while installing tools or dependencies
-------
I've tried running pnpm install --no-frozen-lockfile and then committing new pnpm-lock.yaml still same problem. I've then deleted the old lockfile and run pnpm install to generate new lockfile but still same error.
when i created the patch with pnpm patch-commit <tmp-package-path>, it generated the pnpm-workspace.yaml with this content:
patchedDependencies:
@hono/firebase-auth@1.4.2: patches/@honofirebase-auth@1.4.2.patch

and pnpm-lock.yaml contains:
lockfileVersion: '9.0'

settings:
autoInstallPeers: true
excludeLinksFromLockfile: false

patchedDependencies:
'@hono/firebase-auth@1.4.2':
hash: 61ea9f9945ac2193ce416f638784e341305fbfd53dd4f5a592823af23fe875d5
path: patches/@hono
firebase-auth@1.4.2.patch

importers:

.:
dependencies:
'@hono/firebase-auth':
specifier: ^1.4.2
version: 1.4.2(patch_hash=61ea9f9945ac2193ce416f638784e341305fbfd53dd4f5a592823af23fe875d5)(hono@4.9.9)

first time i got this error in deployment log: ERROR  packages field missing or empty. so i added:
packages:
- .
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Worker build is failing (Preview Build)
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
7mo ago
Worker Build Caching not working - pnpm monorepo
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
5mo ago
PNPM cache not working on Workers build
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
9mo ago
Workers "Build Cache" not working in monorepos + pnpm
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
5mo ago