Skip to content

blitzjs gen not working on version3 #4435

@gengjiawen

Description

@gengjiawen

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/[email protected], @babel/[email protected], @babel/[email protected], @babel/[email protected], @babel/[email protected], @babel/[email protected], @babel/[email protected], @babel/[email protected], @babel/[email protected], @babel/[email protected], @babel/[email protected], @babel/[email protected], @babel/[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions