Title: Bug @codebuff/sdk compatibility with Node.js v22.18.0 by replacing deprecated fs.exists() · Issue #381 · CodebuffAI/codebuff · GitHub
Open Graph Title: Bug @codebuff/sdk compatibility with Node.js v22.18.0 by replacing deprecated fs.exists() · Issue #381 · CodebuffAI/codebuff
X Title: Bug @codebuff/sdk compatibility with Node.js v22.18.0 by replacing deprecated fs.exists() · Issue #381 · CodebuffAI/codebuff
Description: Issue cause: The @codebuff/sdk@0.9.1 package internally uses the deprecated fs.exists() method, which is no longer available in Node.js v22.18.0. Solution: I used pnpm's patch feature to fix this issue: Create a patch: Used pnpm patch @c...
Open Graph Description: Issue cause: The @codebuff/sdk@0.9.1 package internally uses the deprecated fs.exists() method, which is no longer available in Node.js v22.18.0. Solution: I used pnpm's patch feature to fix this i...
X Description: Issue cause: The @codebuff/sdk@0.9.1 package internally uses the deprecated fs.exists() method, which is no longer available in Node.js v22.18.0. Solution: I used pnpm's patch feature to fix th...
Opengraph URL: https://github.com/CodebuffAI/codebuff/issues/381
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug @codebuff/sdk compatibility with Node.js v22.18.0 by replacing deprecated fs.exists()","articleBody":"Issue cause: The @codebuff/sdk@0.9.1 package internally uses the deprecated fs.exists() method, which is no longer available in Node.js v22.18.0.\n\nSolution: I used pnpm's patch feature to fix this issue:\n\nCreate a patch: Used pnpm patch @codebuff/sdk@0.9.1 to create an editable copy.\n\nFix the code: Replaced all fs4.exists() calls with fs4.access():\n\nLine 41054 (parseGitignore function)\n\nLine 61485 (applyChanges function)\n\n```cmd\nC:\\Users\\admin\u003enode -v\nv22.18.0\n\nC:\\Users\\admin\u003e\n```\n\n```\n// node_modules\\pnpm_patches\\@codebuff\\sdk@0.9.1\\dist\\index.mjs\n// // raw\n// if (!await fs4.exists(ignoreFilePath))\n// continue;\n\n// // fix\n// try {\n// await fs4.access(ignoreFilePath);\n// } catch {\n// continue;\n// }\n```\n","author":{"url":"https://github.com/crazyyanchao","@type":"Person","name":"crazyyanchao"},"datePublished":"2025-11-23T16:15:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/381/codebuff/issues/381"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4f24e57c-27d1-ca10-9241-93416f8e49c3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9CF2:398A3A:3BE84B2:4DB9A22:697D90F8 |
| html-safe-nonce | 5d20f87e01e01376d423bbd003946c296cda32ba2422d26712e004ab168f42a2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Q0YyOjM5OEEzQTozQkU4NEIyOjREQjlBMjI6Njk3RDkwRjgiLCJ2aXNpdG9yX2lkIjoiNjQwMzEwNDk1NjUyOTYxMTAwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bd3f1b921faa7fbad26e09e86b60d1542e648822c943067ea5de8993fd6bb3d0 |
| hovercard-subject-tag | issue:3656191784 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/CodebuffAI/codebuff/381/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dcf5a197a665e0fb474ff391f5c68b59c5e0879699b8e84face70e4993bd12e2/CodebuffAI/codebuff/issues/381 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dcf5a197a665e0fb474ff391f5c68b59c5e0879699b8e84face70e4993bd12e2/CodebuffAI/codebuff/issues/381 |
| og:image:alt | Issue cause: The @codebuff/sdk@0.9.1 package internally uses the deprecated fs.exists() method, which is no longer available in Node.js v22.18.0. Solution: I used pnpm's patch feature to fix this i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | crazyyanchao |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/CodebuffAI/codebuff git https://github.com/CodebuffAI/codebuff.git |
| octolytics-dimension-user_id | 189203002 |
| octolytics-dimension-user_login | CodebuffAI |
| octolytics-dimension-repository_id | 826515105 |
| octolytics-dimension-repository_nwo | CodebuffAI/codebuff |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 826515105 |
| octolytics-dimension-repository_network_root_nwo | CodebuffAI/codebuff |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width