Skip to content

Scaffolding a MongoDB project with npm fails with ERESOLVE (alchemy peers mongodb 6, orm-mongo needs 7) #114

Closed

Description

@wmadden-electric

What happens

Scaffolding a MongoDB project with npm fails during install with ERESOLVE.

Cause

alchemy declares an optional peer dependency mongodb@^6.10.0. @prisma/orm-mongo requires mongodb@^7.0.0. npm cannot satisfy both.

Versions

The conflict occurs with the pins on main (create-prisma 0.13.2: @prisma/orm-mongo 8.0.0-rc.11, alchemy 2.0.0-beta.74) and with the pins in #113 (@prisma/orm-mongo 8.0.0-rc.12, alchemy 2.0.0-beta.78). So #113 did not cause it.

What works

Scaffolding MongoDB with bun installs and type checks.

Not covered by tests

The end-to-end tests do not scaffold MongoDB with npm, and they do not run a MongoDB project against a database.

Found while testing #113.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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