Skip to Content
  • Astro
  • Docs
  • Start Here

    • Getting Started
    • Installation
    • Editor Setup
    • Upgrade to v3
  • Core Concepts

    • Why Astro
    • Astro Islands
  • Tutorials

    • Build a Blog
    • Extend with Content Collections
    • Extend with View Transitions
  • Basics

    • Project Structure
    • Components
    • Pages
    • Layouts
    • Astro Template Syntax
    • Rendering Modes
  • Built-ins

    • Content Collections
    • View Transitions
    • Prefetch
  • Add-ons

    • Add integrations
    • UI Frameworks
    • SSR Adapters
  • Recipes

    • Migrate to Astro
    • Connect a CMS
    • Add backend services
    • Deploy your site
    • More recipes
  • Guides

    • Routing
    • Markdown
    • Scripts & Event Handling
    • CSS & Styling
    • Images
    • Fonts
    • Imports
    • Endpoints
    • Data Fetching
    • Internationalization
    • Middleware
    • Testing
    • Troubleshooting
  • Configuration

    • The Astro Config File
    • TypeScript
    • Import Aliases
    • Environment Variables
  • Reference

    • Configuration
    • Runtime API
    • Integrations API
    • Adapter API
    • Image Service API
    • Dev Overlay Plugin API
    • Template Directives
    • The Astro CLI
    • Error Reference
    • NPM Package Format
  • Community

    • Join us on Discord
    • Read our blog posts
    • Our Open Collective
    • Astro Docs on GitHub

    What’s on your mind?

    Choose feedback category

    or

    Create GitHub Issue

    Thanks! We received your feedback.

  • Sponsored by

On this page

  • Overview
  • What went wrong?

Contribute

  • Contributor Guides
  • Edit this page
  • Translate this page

Community

  • Join us on Discord
  • Read our blog posts
  • Our Open Collective
  • Astro Docs on GitHub

What’s on your mind?

Choose feedback category

or

Create GitHub Issue

Thanks! We received your feedback.

On this page

  • Overview
  • What went wrong?

Failed to generate content types.

GenerateContentTypesError: astro sync command failed to generate content collection types: ERROR_MESSAGE

What went wrong?

Section titled What went wrong?

astro sync command failed to generate content collection types.

See Also:

  • Content collections documentation
Error Reference
  • Privacy Policy