Skip to content

SyntaxError: The requested module '@sanity/color-input' does not provide an export named 'colorInput' - Studio embed Remix #53

@DennisKraaijeveld

Description

@DennisKraaijeveld

Hi!

I was using this plugin on a Astro website, but whenever I want to use the plugin in my Remix project where I embed the Studio, it gives me this error

SyntaxError: The requested module '@sanity/color-input' does not provide an export named 'colorInput'

import { colorInput } from '@sanity/color-input'

import { visionTool } from '@sanity/vision'
import { defineConfig, isDev } from 'sanity'
import { deskTool } from 'sanity/desk'
import { defaultDocumentNodeResolver, structure } from '#sanity-desk/index.tsx'
import { schemaTypes } from '#sanity-schema/index.ts'

const devOnlyPlugins = [visionTool()]

export const config = defineConfig({
	dataset: 'production',
	projectId: 'YOUR_PROJECT_ID', // Project id is set dynamically in website cms route.
	name: 'sanity-remix',
	title: 'Sanity Remix',
	schema: {
		types: schemaTypes,
	},
	plugins: [
		deskTool({
			structure: structure,
			defaultDocumentNode: defaultDocumentNodeResolver,
		}),
		colorInput(),
		...(isDev ? devOnlyPlugins : []),
	],
	basePath: ``, // Base path is set dynamically in website cms route.
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions