Comments (7)
Thanks for the help guys.
It turned out the problem was my tsconfig.json file:
"compilerOptions": {
"experimentalDecorators": true,
"target": "ES2015",
"module": "commonjs",
"outDir": "../build",
"noEmit": false,
"sourceMap": true,
"lib": [ //---
"ES6" // Removing these 3 lines fixed the problem.
] //---
},
Thanks for the quick response @kiwicopple and @calendee. I am looking forward to trying out Supabase properly.
from supabase-js.
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 @supabase/supabase
package solve the problem? 🤞
If not, can you create a public repo that demonstrates the problem?
Thanks!
from supabase-js.
Hi @TheTrainor - this looks like it was due to some missing exports on our side.
@calendee fixed it here: #97. Can you try to instlall the latest supabase version?
npm install @supabase/supabase@latest
this should bump it to v1.1.0
from supabase-js.
Sorry for reopening this issue, but for anyone else having issues with this, ensure you have the following in your tsconfig.json
{
"compilerOptions": {
"skipLibCheck": true
},
}
It seems like there might still be some weirdness going on with the lib, but it's easy enough to fix with the above.
from supabase-js.
I think we should fix the type errors here.
from supabase-js.
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.
The AWS SDK seems to have the same issue and they recommend adding dom types to your tsconfig file.
from supabase-js.
Doesn't seem like there's a better alternative to adding DOM
to lib
, so closing this for now.
from supabase-js.
Related Issues (20)
- `supabase.createClient` not reading in access token from URL and initialising session object when using Google or Github sign in. HOT 1
- Selecting a schema on createClient does not work HOT 2
- supabase.auth.getSession is slow HOT 2
- Order on a foreign table HOT 6
- Return format is not consistent across queries with the same select parameters HOT 1
- Version v2.39.2 and above break types HOT 4
- Bug/Proposal: try catch not working on supabase api functions HOT 1
- Deploy Svelte and Supabase to Google cloud and supabase is unable to get the environment variables HOT 1
- Twitter OAuth stopped working HOT 1
- supabase stop --no-backup doesn't delete backup
- `GoTrueClient` Memory Leak HOT 1
- docs: clarify if client supports retry HOT 1
- Cloudflare Block for Incoming Webhooks - Edge Functions HOT 6
- TS `ParserError` for spread operation in `select`
- Newly added column doesn't exist on update, but when I fetch, it's visible HOT 1
- docs: improve py create a new user HOT 1
- Enabling Post-Signup Email Verification without Blocking User Sign-In on Supabase (Resend) HOT 5
- Nextjs14 with Supabase Auth - AuthApiError: invalid claim: missing sub claim HOT 27
- Max rows in API Settings doesn't work on local development
- chore(deps): Update postgrest-js version to 1.13.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from supabase-js.