Skip to content

"TypeError: Object(...) is not a function" exception when importing the generated client in Next.JS app #15

@godness84

Description

@godness84

I use Next.JS with typescript plugin. When I import the generated client that's the exception that gets raised.

If I replace exports.createClient with module.exports.createClient it works.

What am I missing?

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