ricokahler / sanity-codegen

Generate TypeScript types from your Sanity.io schemas
sanity-codegen-dev.vercel.app
MIT License
270 stars 19 forks source link

Error: Cannot find module 'part:@sanity/base/util/document-action-utils' #271

Open Zylvian opened 2 years ago

Zylvian commented 2 years ago

After running ´npx sanity-codegen´.

@sanity/base is listed in the package file.

import { SanityCodegenConfig } from 'sanity-codegen';

const config: SanityCodegenConfig = {
    schemaPath: './schemas/schema.js',
    outputPath: './convertedman.js',
};

export default config;

Npx is run from the /sanity/ folder in the project.