-
Notifications
You must be signed in to change notification settings - Fork 2.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
PaginatedDocs<TypeWithID & Record<string, unknown>> #6799
Comments
Ok, it turns out that this is problem with vscode. I opened project in webstorm and it returns correct type. |
I am experiencing the same issue (VS Code). Tried it on beta.40 and beta.53 |
Same issue, payload version: 2.0.0, VS Code. Typescript version 5.5.3 is not working. |
Same issue, woke up today and suddenly had it. Payload version 2.22.0
orders is now of type: (TypeWithID & Record<string, unknown>)[] |
VC Code by default often uses an incorrect typescript version. You will have to set it to the workspace typescript version (5.4.5): https://code.visualstudio.com/docs/typescript/typescript-compiling#_using-the-workspace-version-of-typescript |
Yup this fixed the issue for me, thank you! For whatever reason VS Code decided to switch to an incompatible version of TypeScript. Switching back to the workspace version fixed it just as you said. |
Same issue and yet no solutions , [email protected] & [email protected] |
Payload v2 does not and will never support TypeScript 5.5+. Please switch to TypeScript |
Thank you |
This issue has been automatically locked. |
Payload Version
3.0.0-beta.47
Node Version
v22.3.0
Next.js Version
15.0.0-rc.0
Describe the Bug
In this code im quering 'news' collection from local api. Property docs, inside response object should be Type from generated:types but it is not.
Adapters and Plugins
db-postgres, storage-uploadthing, richtext-lexical
The text was updated successfully, but these errors were encountered: