Why would this be giving me an error? #2576
Unanswered
ahmetskilinc
asked this question in
Q&A
Replies: 1 comment
-
Hey @ahmetskilinc, I don't know why typescript is having a problem with this. Does the issue go away if you set the type of the import type { TextField } from 'payload/types'
const title: TextField = {
name: 'title',
type: 'text',
admin: {
position: 'sidebar',
},
}; Looking into a fix in Payload was a dead-end. I thought it was because the UI admin.sidebar from is |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The following snippet is giving me a type error:
I've already got a 'title' defined which I use in other blocks/collections but I want to spread it so I can add a condition to it - however I'm getting that error.
Beta Was this translation helpful? Give feedback.
All reactions