ricokahler / sanity-codegen

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

Could not find types for 'x' message for types created via plugins #259

Open seenickcode opened 2 years ago

seenickcode commented 2 years ago

Hello, I wanted to know if this package supports types created by plugins, such as the 'markdown' plugin.

Here are some steps to reproduce:

  1. sanity install markdown
  2. (add a type of 'markdown' to a field in a schema file, ie.
    ...
    {   name: "show_notes",
    title: "Show Notes",
    type: "markdown",
    },
    ...
  3. Run code gen:
    npx sanity-codegen
    Could not find types for: "Markdown". Ensure they are present in your schema. Future versions of sanity-codegen will allow you to type them separately.
mikewheaton commented 8 months ago

Has anyone found a solution to this?