-
-
Notifications
You must be signed in to change notification settings - Fork 266
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
Compilation errors with TypeScript #96
Comments
Unfortunately, I can't reproduce the problem even when I checkout the previous releases and build them. Hopefully I'm just doing something wrong though. @TheTrainor Did updating the If not, can you create a public repo that demonstrates the problem? Thanks! |
Thanks for the help guys. It turned out the problem was my tsconfig.json file:
Thanks for the quick response @kiwicopple and @calendee. I am looking forward to trying out Supabase properly. |
Sorry for reopening this issue, but for anyone else having issues with this, ensure you have the following in your
It seems like there might still be some weirdness going on with the lib, but it's easy enough to fix with the above. |
I think we should fix the type errors here. |
Not sure if we can fix this issue in the library itself. I fixed this by adding the "DOM" to tsconfig lib attribute in the project consuming supabase-js. |
Doesn't seem like there's a better alternative to adding |
Improve documentation
Link
https://supabase.io/docs/client/installing
Describe the problem
Hi, I wasn't sure whether to file this as a bug report or a documentation issue as I am not sure which it is.
Typescript and Node really aren't my forte so sorry if this is something basic, but after running the install steps at the above link and then following the createClient example (https://supabase.io/docs/client/initializing) I run into the following compilation errors while compiling with Typescript:
Describe the improvement
If there are additional steps required to work with Typescript, it would be nice if the documentation provided direction. Or if it already exists, maybe just a link on the installation page to the Typescript-specific documentation.
Thanks :-)
The text was updated successfully, but these errors were encountered: