Coder Social home page Coder Social logo

Comments (7)

ohnv avatar ohnv commented on June 22, 2024 2

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.

calendee avatar calendee commented on June 22, 2024 1

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.

kiwicopple avatar kiwicopple commented on June 22, 2024

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.

ChronSyn avatar ChronSyn commented on June 22, 2024

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.

inian avatar inian commented on June 22, 2024

I think we should fix the type errors here.

from supabase-js.

inian avatar inian commented on June 22, 2024

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.

soedirgo avatar soedirgo commented on June 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.