Skip to content

gen types: 'assert' is deprecated in import statements #3239

@tmountain

Description

@tmountain

Describe the bug

As of the 2.15.8 release, we are getting this error when generating types from a clean Github CI/CD workflow.

❯ npx supabase gen types typescript --local > database.types.ts
Connecting to db 5432
(node:1) V8: file:///usr/src/app/dist/server/app.js:8 'assert' is deprecated in import statements and support will be removed in a future version; use 'with' instead

To Reproduce
Steps to reproduce the behavior:

❯ node --version
v20.5.1

❯ npx supabase gen types typescript --local > database.types.ts

Expected behavior

The command completes without generating an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions