You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Relying on the import schemaTypes from 'all:part:@sanity/base/schema-type' within schema.js to include the colorPicker document doesn't seem to work.
As a temp workaround, I've including the colorPicker document type directly like: import colorPicker from '../node_modules/sanity-plugin-color-picker/lib/schema/index'
@MarioGiancini Any luck with this? I'm having the same issue, but I'm not sure how to do the workaround either. Where are you putting this? import colorPicker from '../node_modules/sanity-plugin-color-picker/lib/schema/index'
After running
sanity install color-picker
and adding a the type to a document field like:the Error
Unknown type: colorPicker.
is shown.Relying on the
import schemaTypes from 'all:part:@sanity/base/schema-type'
withinschema.js
to include thecolorPicker
document doesn't seem to work.As a temp workaround, I've including the
colorPicker
document type directly like:import colorPicker from '../node_modules/sanity-plugin-color-picker/lib/schema/index'
Sanity versions:
The text was updated successfully, but these errors were encountered: