-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local API - findByID works in beta.107 but is broken in beta.108 #8840
Comments
I tested the provided test in the latest beta and it passes successfully. In your own project where you're seeing this can you test on the latest beta please? Or at least like beta.116 If it still happens, can you then test it with a fresh database please? |
@paulpopus thanks for the response! This too seems really weird to me. I replicated the exact same config in the forked payload repo as I'm running and indeed it does work there as opposed in my own repo. Then I noticed that the only difference is the test runner. I'm running my tests with So, in the forked repo:
It does fail with this error:
I tried to back trace the version of payload when the I do understand that bun is not something that you support, but maybe if you had any idea what was introduced in |
Having the same problem on beta.118, also using bun. Find function works fine. |
Sorry guys but Bun is not officially supported right now, at best using it as a package manager is still experimental. |
This issue has been automatically locked. |
Describe the Bug
I believe that beta.108 broke the
payload.findByID
api in some way.This is not an issue in beta.107
*However I was not able to reproduce this issue with the forked payload repo, where I checked out from a beta.108 tag.
Link to the code that reproduces this issue
https://github.com/martynasj/payload/blob/bug/test/_community/int.spec.ts#L51
Reproduction Steps
Which area(s) are affected? (Select all that apply)
db-mongodb, area: core
Environment Info
Binaries:
Node: 20.17.0
npm: 10.8.2
Yarn: N/A
pnpm: 9.11.0
Relevant Packages:
payload: 3.0.0-beta.108
next: 15.0.0-canary.173
@payloadcms/db-mongodb: 3.0.0-beta.108
@payloadcms/email-nodemailer: 3.0.0-beta.108
@payloadcms/graphql: 3.0.0-beta.108
@payloadcms/next/utilities: 3.0.0-beta.108
@payloadcms/plugin-cloud: 3.0.0-beta.108
@payloadcms/richtext-lexical: 3.0.0-beta.108
@payloadcms/translations: 3.0.0-beta.108
@payloadcms/ui/shared: 3.0.0-beta.108
react: 19.0.0-rc-2d16326d-20240930
react-dom: 19.0.0-rc-2d16326d-20240930
The text was updated successfully, but these errors were encountered: