Keystone cli installs conflicting versions of prisma dependencies

Open
#9,349 10 comments 3 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
nodejs, typescript
Domain
cli, tooling

Research direction

Start with the keystone dev command and the dependency installation used by the install walkthrough; run pnpm why @prisma/client to inspect the conflicting versions. Done means the CLI installs matching Prisma dependency versions and the walkthrough runs without requiring a manual prisma generate step.

Written by the indexing model from the issue text.

Description

needs more info

Out of the box, keystone dev installs @prisma/client and prisma dependencies in such a way that version conflicts arise.

  1. Perform "install" walkthrough
  2. Run keystone dev

You'll see an error message which indicates a version mismatch of prisma dependencies:

Error: @prisma/client did not initialize yet. Please run "prisma generate" and try to import it again.

Expected:
Keystone works out of the box. Keystone CLI should install the packages locally with the same version specifier as its internal package.json.

Additional Info

$ pnpm why @prisma/client

dependencies:
@keystone-6/core 6.3.0
└── @prisma/client 5.19.0
@prisma/client 5.20.0
Dominant language
TypeScript
Stars
10k
Forks
1.3k
Avg merge
1d 12h
Merged PRs (30d)
38

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from keystonejs/keystone

All issues in keystonejs/keystone

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.