When prismic init blocks because the Type Builder isn't enabled for a repository, the error message is a dead end:
This command requires the Type Builder in your repository.
There's no guidance on what to do next. In practice, most of the CLI works without the Type Builder gate:
gen setup generates all framework files (prismicio.ts, preview routes, slice simulator, revalidation route) with no Type Builder check
type create, field add, slice create, gen types all work independently
- The user can manually create
prismic.config.json and use all of the above
In a recent agent test session, the agent hit this error and incorrectly concluded that gen setup also requires the Type Builder. It then manually created all 5 framework files that gen setup would have generated automatically.
The error should guide users toward the working path when they can't use init.
When
prismic initblocks because the Type Builder isn't enabled for a repository, the error message is a dead end:There's no guidance on what to do next. In practice, most of the CLI works without the Type Builder gate:
gen setupgenerates all framework files (prismicio.ts, preview routes, slice simulator, revalidation route) with no Type Builder checktype create,field add,slice create,gen typesall work independentlyprismic.config.jsonand use all of the aboveIn a recent agent test session, the agent hit this error and incorrectly concluded that
gen setupalso requires the Type Builder. It then manually created all 5 framework files thatgen setupwould have generated automatically.The error should guide users toward the working path when they can't use
init.