Skip to content

Getting Global CSS cannot be imported from within node_modules error  #28

@april-ctrlspire

Description

@april-ctrlspire

Hi. I'm using a fresh NextJS 13.2.1 with Tailwind and integrated the Sanity Studio V3 in /pages directory. They're working fine. I installed this plugin but it's getting Global CSS cannot be imported from within node_modules error.

error

sanity.config.ts:

import { deskTool } from 'sanity/desk';
import { visionTool } from '@sanity/vision';
import { codeInput } from '@sanity/code-input';
import { latexInput } from 'sanity-plugin-latex-input';

import { schemaTypes } from '@/schemas/index';

export const projectId = process.env.NEXT_PUBLIC_SANITY_PROJECT_ID!;
export const dataset = process.env.NEXT_PUBLIC_SANITY_DATASET!;

export default defineConfig({
  basePath: '/studio',
  projectId,
  dataset,

  plugins: [deskTool(), visionTool(), codeInput(), latexInput()],

  schema: {
    types: schemaTypes,
  },
});

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