Skip to content

Commit 59f5a6d

Browse files
author
Miriad
committed
fix: register @sanity/table plugin to resolve Unknown type: table
The table type is used in existing Sanity content documents but was never registered in the studio schema. Added @sanity/table v2.0.1 and registered it in sanity.config.ts plugins.
1 parent db6721f commit 59f5a6d

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
"@sanity/image-url": "^2.0.3",
5858
"@sanity/preview-url-secret": "^4.0.3",
5959
"@sanity/studio-secrets": "^4.0.1",
60+
"@sanity/table": "^2.0.1",
6061
"@sanity/ui": "^3.1.13",
6162
"@sanity/vision": "^5.12.0",
6263
"@sanity/webhook": "^4.0.4",

pnpm-lock.yaml

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sanity.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { type PluginOptions, defineConfig } from "sanity";
77
import { cloudinarySchemaPlugin } from "sanity-plugin-cloudinary";
88
// import { tags } from "sanity-plugin-tags";
99
import { codeInput } from "@sanity/code-input";
10+
import { table } from "@sanity/table";
1011
// import { iconPicker } from "sanity-plugin-icon-picker" https://github.com/christopherafbjur/sanity-plugin-icon-picker/issues/73;
1112
import { podcastRss } from "@codingcatdev/sanity-plugin-podcast-rss";
1213

@@ -208,6 +209,7 @@ export default defineConfig({
208209
// https://www.sanity.io/docs/ai-assistPcli
209210
assistWithPresets(),
210211
cloudinarySchemaPlugin(),
212+
table(),
211213
// tags(),
212214
codeInput(),
213215
// iconPicker(),

0 commit comments

Comments
 (0)