payloadcms / payload

Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
https://payloadcms.com
MIT License
23.59k stars 1.5k forks source link

Node 22.7.0 Compatibility issues #7965

Closed denolfe closed 1 month ago

denolfe commented 1 month ago

Link to reproduction

https://github.com/payloadcms/payload/tree/build/bump-nodejs

Environment Info

Payload: monorepo
Next.js: monorepo
Node.js: 22.7.0

Describe the Bug

There appears to be some sort of utf-8 related compatibility issue with Node 22

Branch: https://github.com/payloadcms/payload/tree/build/bump-nodejs PR with failing action: #7935

MongoDB

CleanShot 2024-08-28 at 19 54 42

Postgres

CleanShot 2024-08-28 at 19 52 53

Reproduction Steps

Run pnpm test:int on Node 22 with either postgres or mongodb

Adapters and Plugins

No response

andershermansen commented 1 month ago

Regression in node 22.7.0 https://github.com/nodejs/node/issues/54543

denolfe commented 1 month ago

Good find @andershermansen ! 🙏

denolfe commented 1 month ago

Bug with Node.js, not Payload 👍

github-actions[bot] commented 3 weeks ago

This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.