Skip to content

Next ServerAdapter or RestApiRequest Handler reporting missing "pg" reference when using sqllite as database #2470

@sw34

Description

@sw34

Description and expected behavior
Nextjs is reporting that a missing module 'pg' could not be found, but my database is sqllite when /api/model is called. If I install pg the error goes away and the route works as expected.

Screenshots

Image

Environment (please complete the following information):

  • ZenStack version:3.4.5
  • Database type: sqllite
  • Node.js/Bun version: 22.19.5
  • Package manager: npm

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions