Repository navigation
Conversation
amitsingh-007
added a commit
to amitsingh-007/bypass-links
that referenced
this pull request
Jul 11, 2026
firebase-admin 14 -> jwks-rsa@4 require()s ESM-only jose@6, which crashes with ERR_REQUIRE_ESM in the Next/Turbopack serverless runtime on Vercel. Pin jose under jwks-rsa to the dual CJS/ESM 4.15.9 (jwks-rsa only uses importJWK/exportSPKI, API-identical across jose 4/5/6) — the workaround endorsed in firebase/firebase-admin-node#3181. The override is declared in BOTH pnpm-workspace.yaml (read by local pnpm 11, which bakes it into the lockfile) and package.json#pnpm.overrides (read by Vercel's pnpm 9); both must match or the frozen install fails with ERR_PNPM_LOCKFILE_CONFIG_MISMATCH. Remove both once auth0/node-jwks-rsa#508 ships. Verified on a Vercel preview: bookmarksGet/personsGet/getDownloadUrl return 200 and bookmarks are cached. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #507.
Summary:
joselazily so CommonJS entrypoints can be required without synchronously loading an ES module.Testing:
node --no-experimental-require-module -e "require('./src'); console.log('loaded top-level')"node --no-experimental-require-module -e "require('./src/utils'); console.log('loaded utils')"npm run test:js -- --grep "CommonJS module loading|utils - retrieveSigningKeys|passportJwtSecret"npm run lintnpm run test:jsnpm test