Skip to content

Pal.js fails after Prisma 7 update — missing url in datasource error #358

@eunchurn

Description

@eunchurn

I love using Pal.js, but after updating Prisma to version 7, code generation no longer works.
Running pal generate triggers the following error:

GetDmmfError: Prisma schema validation - (get-dmmf wasm)
Error code: P1012
error: Argument "url" is missing in data source block "db".
  --> schema.prisma:1
   | 
 1 | datasource db {
 2 |   provider = "postgresql"
 3 | }
   | 

Validation Error Count: 1
[Context: getDmmf]

Prisma CLI Version: 6.19.0

It seems that Pal.js does not support the new Prisma 7 CLI behavior.
Even though my previous setup worked fine, Prisma 7 now requires stricter validation on the datasource configuration—causing Pal.js to break before generation.

Request

Is there any plan to support Prisma 7, or a recommended workaround to make pal generate work with the new Prisma CLI?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions