Skip to content

init Type Builder error doesn't suggest alternatives #137

@angeloashmore

Description

@angeloashmore

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions