🔮 Sanity Create is here. Writing is reinvented. Try now, no developer setup

Error when adding color-input plugin to schema

1 replies
Last updated: Apr 6, 2020
I’ve installed the Color-input plugin: https://www.sanity.io/plugins/color-input with the command
sanity install @sanity/color-input

And added it to my schema like shown in the example:

  name: 'myColor',
  type: 'color',
  title: 'Choose color'
but I get thrown an error of unknown type.

Unknown type: color. Valid types are: siteSettings, about, project, img, array, block, boolean, datetime, date, document, email, file, geopoint, image, number, object, reference, slug, string, telephone, text and url
Apr 3, 2020, 2:28 PM
Hm… Did you restart your Studio after running the
sanity install
Oops! Just saw your comment below this one 😅
Apr 6, 2020, 3:05 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?