-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"TypeError: Object(...) is not a function" exception when importing the generated client in Next.JS app #15
Comments
can you provide the full error with stack trace? also, what is your Node version and what's in your |
Hi @helios1138 , sure!
Node: v10.15.3 tsconfig.json:
And here how it is transpiled in my
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
withmodule.exports.createClient
it works.What am I missing?
The text was updated successfully, but these errors were encountered: