blitz-js / blitz-js/blitz

blitzjs gen not working on version3

Open
#4,435 0 comments 0 reactions 0 assignees View on GitHub
kind/bug status/triage
Dominant language
TypeScript
Stars
14.1k
Forks
803
PR merge metrics
No merged PRs in 30d

Description

### What is the problem?

rt

### Paste all your error logs here:

```
gitpod /workspace/sass-template (master) $ pnpx blitz@3 generate all todo text:string completed:boolean
 WARN  22 deprecated subdependencies found: @babel/plugin-proposal-async-generator-functions@7.20.7, @babel/plugin-proposal-class-properties@7.18.6, @babel/plugin-proposal-dynamic-import@7.18.6, @babel/plugin-proposal-export-namespace-from@7.18.9, @babel/plugin-proposal-json-strings@7.18.6, @babel/plugin-proposal-logical-assignment-operators@7.20.7, @babel/plugin-proposal-nullish-coalescing-operator@7.18.6, @babel/plugin-proposal-numeric-separator@7.18.6, @babel/plugin-proposal-object-rest-spread@7.20.7, @babel/plugin-proposal-optional-catch-binding@7.18.6, @babel/plugin-proposal-optional-chaining@7.21.0, @babel/plugin-proposal-private-methods@7.18.6, @babel/plugin-proposal-unicode-property-regex@7.18.6, boolean@3.2.0, glob@7.2.3, inflight@1.0.6, resolve-url@0.2.1, rimraf@2.6.3, rimraf@3.0.2, source-map-resolve@0.5.3, source-map-url@0.4.1, urix@0.1.0
Packages: +601
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 611, reused 589, downloaded 2, added 601, done
Loaded env from /workspace/sass-template/.env
CREATE src/app/todos/components/TodoForm.tsx
CREATE src/app/todos/queries/getTodo.ts
CREATE src/app/todos/queries/getTodos.ts
CREATE src/app/todos/mutations/createTodo.ts
CREATE src/app/todos/mutations/deleteTodo.ts
CREATE src/app/todos/mutations/updateTodo.ts
CREATE src/app/todos/schemas.ts

Model 'Todo' created in schema.prisma:

>
> model Todo {
> id Int @id @default(autoincrement())
> createdAt DateTime @default(now())
> updatedAt DateTime @updatedAt
> text String
> completed Boolean
> }
>

Error: not found: prisma
```

### Paste all relevant code snippets here:

```
PASTE_HERE (leave the ``` marks)
```

### What are detailed steps to reproduce this?

blitz new project

### Run `blitz -v` and paste the output here:

```
System:
OS: Linux 6.1 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish)
CPU: (16) x64 AMD EPYC 7B13
Memory: 48.04 GB / 62.79 GB
Shell: 5.1.16 - /bin/bash
Binaries:
Node: 22.13.1 - ~/.nvm/versions/node/v22.13.1/bin/node
Yarn: 1.22.22 - ~/.nvm/versions/node/v22.13.1/bin/yarn
npm: 10.9.2 - ~/.nvm/versions/node/v22.13.1/bin/npm
npmPackages:
@blitzjs/auth: 3.0.1 => 3.0.1
@blitzjs/next: 3.0.1 => 3.0.1
@blitzjs/rpc: 3.0.1 => 3.0.1
@prisma/client: 6.5.0 => 6.5.0
blitz: 3.0.1 => 3.0.1
next: 15.2.3 => 15.2.3
prisma: 6.5.0 => 6.5.0
react: 19.0.0 => 19.0.0
react-dom: 19.0.0 => 19.0.0
typescript: 5 => 5.8.2
```

### Please include below any other applicable logs and screenshots that show your problem:

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.