Build Fails When Using Sanity Create Templates with No Error Details
I can see you're experiencing build failures with the Gatsby blog template from sanity.io/create. Unfortunately, this web-based template creation system appears to have been deprecated or significantly changed - the URL you're using may no longer be functional.
Based on the current Sanity documentation on templates, many older templates that relied on Sanity Studio v2 have not been migrated to v3, and the Gatsby ecosystem templates may be among those affected. The platform has shifted toward a more modern approach for getting started.
Here's the recommended path forward:
The current best practice is to use the Sanity CLI to initialize new projects with npm create sanity@latest. This gives you:
- Better error messages when something goes wrong
- More control over the setup process
- Support for modern frameworks like Next.js, Nuxt, and Astro
- Up-to-date templates maintained for Studio v3
To get started:
npm create sanity@latestThis will walk you through an interactive setup including authentication, project creation, dataset configuration, and template selection. The CLI approach is more reliable than the web-based template creator and is what Sanity currently recommends.
If you specifically need Gatsby:
While Gatsby templates still exist in the Sanity ecosystem (95 templates are listed), many may be outdated. You have two options:
- Browse the current Gatsby templates on Sanity Exchange and look for community-maintained options that are actively updated
- Consider using Next.js instead - it has better support with 382+ templates and is more actively maintained in the Sanity ecosystem
Why the web-based creator may be failing:
The sanity.io/create interface was designed for older template systems and may not be receiving active maintenance. The shift to CLI-based initialization gives developers more transparency and better debugging capabilities when issues arise.
If you're committed to Gatsby specifically, I'd recommend checking individual template repositories on GitHub to verify they're still maintained, or consider starting with the CLI and manually integrating Gatsby with your Sanity project using their official source plugin. The Gatsby integration with Sanity remains solid - it's just the automated template deployment that may have changed.
Show original thread9 replies
Sanity – Build the way you think, not the way your CMS thinks
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.