Skip to content

Refacorting to new Visual Editing API (Do not merge yet) #401

Refacorting to new Visual Editing API (Do not merge yet)

Refacorting to new Visual Editing API (Do not merge yet) #401

Triggered via pull request March 12, 2024 02:51
Status Failure
Total duration 39s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
build: sanity.config.ts#L31
Type 'string' is not assignable to type '{ enable: string; check?: string; disable?: string; }'.
build: sanity.config.ts#L34
Object literal may only specify known properties, and 'schema' does not exist in type 'StructureToolOptions'.
build: src/app/api/draft/route.ts#L10
Cannot find module '@/lib/sanity.client' or its corresponding type declarations.
build: src/app/api/draft/route.ts#L11
Cannot find module '@/lib/sanity.token' or its corresponding type declarations.
build: src/app/page.tsx#L5
Module '"~/app/layout"' has no exported member 'SharedPageProps'. Did you mean to use 'import SharedPageProps from "~/app/layout"' instead?
build: src/app/page.tsx#L10
Module '"~/lib/sanity.queries"' has no exported member 'getPosts'.
build: src/app/post/[slug]/page.tsx#L6
Module '"~/app/layout"' has no exported member 'SharedPageProps'. Did you mean to use 'import SharedPageProps from "~/app/layout"' instead?
build: src/app/post/[slug]/page.tsx#L11
Module '"~/lib/sanity.queries"' has no exported member 'getPost'.
build: src/app/post/[slug]/page.tsx#L26
Type 'string' is not assignable to type 'Omit<ClientPerspective, "raw">'.
build: src/app/post/[slug]/page.tsx#L36
Property '_id' does not exist on type 'unknown'.