Coder Social home page Coder Social logo

Comments (9)

ixxie avatar ixxie commented on June 22, 2024

I've now tried a similar minimal example using es5-ext/global directly and it seems the root of the issue is there. It seems this package is abandoned (not github activity for a year) and perhaps an alternative should be suggested to the websocket maintainers but I am not sure what it would be...

from supabase-js.

benmccann avatar benmccann commented on June 22, 2024

Perhaps https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis could be used if it's available

from supabase-js.

ixxie avatar ixxie commented on June 22, 2024

@benmccann this is what I suggested and this was already released into [email protected] by its maintainer (see theturtle32/WebSocket-Node#415).

from supabase-js.

kiwicopple avatar kiwicopple commented on June 22, 2024

We originally used globalThis in gotrue and had to polyfill it: supabase/auth-js#38

I find this a bit odd though, because our supabase-js client is isomorphic. We already use it in a node environment and it works fine 🤔

from supabase-js.

benmccann avatar benmccann commented on June 22, 2024

Anyway, this issue seems fixed by [email protected], so at most we'd need to upgrade package.json and then can close this

from supabase-js.

benmccann avatar benmccann commented on June 22, 2024

I'm not sure if it's related to the globalThis issue, but once the globalThis issue is fixed I encounter another issue that seems to be a Vite bug: vitejs/vite#2995

from supabase-js.

kiwicopple avatar kiwicopple commented on June 22, 2024

OK I bumped to the latest. I'll leave this open if anyone can confirm the fix?

from supabase-js.

kiwicopple avatar kiwicopple commented on June 22, 2024

🎉 This issue has been resolved in version 1.11.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

from supabase-js.

benmccann avatar benmccann commented on June 22, 2024

Thanks! There's multiple issues left running Supabase with SvelteKit, but they're pretty clearly issues with Vite so we'll work on those in that repo. Thanks for all your help!

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.