-
IssueSince I upgraded Current types in useThat TypeScript error appears in import pagesCollection from './schema/collections/pages'
export default defineSchema({
collections: [pagesCollection],
}) As you can see in the screenshot above, the TS error appears on the import type { TinaCollection, TinaCloudCollection } from '@tinacms/cli'
const pagesCollection: TinaCollection | TinaCloudCollection = {
label: 'Pages',
name: 'pages',
path: 'content/pages',
fields: [...],
}
export default pagesCollection QuestionI'd love to know whether there is something wrong with those types and what the correct version should be. The types above worked fine when running Thanks a bunch for any help you can offer! Other things I've tried
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I think the underlying issue here is now resolved - there are further notes in this PR: #2793 It seems the correct option is not to import |
Beta Was this translation helpful? Give feedback.
I think the underlying issue here is now resolved - there are further notes in this PR: #2793
It seems the correct option is not to import
defineSchema
from'tinacms'
(and also import theTinaCollection
type from that library)