redwood: GraphQL and Scaffolding does not support Prisma Bytes data type

My database is postgres server.

I made model Asset following the tutorial in schema.prisma

// Asset Model
// to hold binary
model Asset { 
  id Int @id @default(autoincrement())
  title String
  comments String
  createdAt DateTime @default(now())
  blob Bytes
  coordinates Json
}

I went to generate my scaffold Yarn rw g scaffold asset

then my error

PS E:\HalmetsRedWood\Hamlet> Yarn rw g scaffold asset  
  × Generating scaffold files...
    → Cannot read properties of undefined (reading 'replace')
    Adding layout import...
    Adding set import...
    Adding scaffold routes...
    Adding scaffold asset imports...
    Generating types ...
Cannot read properties of undefined (reading 'rep

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 29 (11 by maintainers)

Most upvoted comments