Skip to content

npx zenstack init installs Prisma v7.0.0 causing ERR_REQUIRE_ESM failure #2313

@Fate0x01

Description

@Fate0x01

Bug Description
I encountered a critical error when initializing a new ZenStack project using npx zenstack@latest init.

It appears that Prisma released v7.0.0 recently. The ZenStack init script automatically installs the latest version of Prisma (v7), which introduces ESM changes that seem incompatible with the current ZenStack generator or dependencies (specifically related to zeptomatch and @prisma/dev).

This results in an ERR_REQUIRE_ESM error immediately during the generation phase.

Steps to Reproduce
Create an empty project directory.

Run npx zenstack@latest init.

Observe that it installs prisma@7.0.0.

The command fails at the Generating Prisma schema step.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions