MI

Results 6 comments of MI

Experienced this right now, Sanity version 3.21.3

Hi @juice49 defineType code: ```js import { defineField, defineType } from "sanity"; import LayoutItem from "sanity/components/LayoutItem"; import { StackCompactIcon } from "@sanity/icons"; export default defineType({ title: "Accordion", name: "accordion", type:...

@juice49 ```js tsc accordion.ts:26:5 - error TS2353: Object literal may only specify known properties, and 'preview' does not exist in type 'DocumentComponents'. 26 preview: LayoutItem, ~~~~~~~ node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/sanity/lib/_singletons.d.ts:8540:5 8540 components?: DocumentComponents...

@ricokahler Followed up with the advice but outcome remains the same. To make sure this is not related to the project I worked on I created a new sanity installation...