Open lkp-k opened 7 months ago
I was following some blog using this library in a nodejs project without TS. I tried the same in my TS nodejs project and getting similar issue as this.
A quick fix I used avoid the error
//tsconfig
{
"compilerOptions": {
"skipLibCheck": true
},
}
Same issue here. I can compile with skipLibCheck as true.
Any other solutions here?
Rather than "skipLibCheck" I added "lib": ["ESNext", "DOM"]
to my tsconfig.json and that also fixed it (DOM is the important part).
I need to decide which solution I like least: Accepting DOM types in my server-only package, or skipping lib checking entirely. Would love a third option if anyone finds one.
A quick fix I used avoid the error
//tsconfig { "compilerOptions": { "skipLibCheck": true }, }
Thank you so munch!
Bug report
Describe the bug
There is some issue with
@types/phoenix
and since I'm using typescript I get compilation error.I realize that CloseEvent exists on browser, and I want to use supabase-js purely on backend. I'm wondering - am I using the wrong package for this? Something like "admin-sdk".
And there are a bunch of other issues too:
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Install latest supabase-js while using typescript and try running it.
Expected behavior
No compilation error.
Screenshots
System information
Additional context
Add any other context about the problem here.