keystonejs / keystonejs/keystone

Keystone cli installs conflicting versions of prisma dependencies

Open
#9,349 10 comments 3 reactions 0 assignees View on GitHub
needs more info
Dominant language
TypeScript
Stars
10k
Forks
1.3k
Avg merge
19h 14m
Merged PRs (30d)
19

Description

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**
``` shell
$ pnpm why @prisma/client

dependencies:
@keystone-6/core 6.3.0
└── @prisma/client 5.19.0
@prisma/client 5.20.0
```

Contributor guide

Open the contributing guide

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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.