-
-
Notifications
You must be signed in to change notification settings - Fork 430
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Bug report
- [x ] I confirm this is a bug with Supabase, not with my own application.
- I confirm I have searched the Docs, GitHub Discussions, and Discord.
Describe the bug
I try to create client in nodejs but always get window is not defined error as attached below. Then when i try to debug the source code through stack trace, it turned on that isBrowser() return a True value. But when i manually set it to false, it will work.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
- create a fastify project
- import and createClient(host, key, {db: {schema: abc}}
- run the server with node index.js
- Got error as attached
Screenshots
Then i debug and got True value when printing isBrowser() which it should be False. I manually change code here then it works.
System information
- OS: macOS monetary
- Version of supabase-js: 2.24.0, I also tried with some older version in Supabase 2. It's the same.
- Version of Node.js: 14
julian-hecker, AbdelrahmanAbounida, parsehex, hirenapatel1109, aford22 and 5 more
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working