Lukas
12/22/2022, 3:42 AMelamandeep
12/22/2022, 5:42 AMsql join
in api ?gisborne
12/22/2022, 6:09 AMelamandeep
12/22/2022, 6:31 AMzilchg00d
12/22/2022, 6:41 AMzilchg00d
12/22/2022, 6:42 AMelamandeep
12/22/2022, 6:44 AMThomas Allmer
12/22/2022, 11:12 AM@supabase/supabase-js
does not work directly in the browser...
opening the following html file in a "normal" web server (e.g. not code transformations)
html
<script type="importmap">
// ... import map data
</script>
<script type="module">
import { createClient } from "@supabase/supabase-js";
console.log(createClient);
</script>
does not work and throws an error.
It's because of 3 reasons
1. there are imports like import RealtimeChannel from './RealtimeChannel';
which a browser can not resolve (needs to be RealtimeChannel.js
)
2. cross-fetch
has a browser version that is NOT an es module
3. websocket
does not have an es module version at all
I think all of these should be able to be solved if there is interest in making it work...
so basically my question is
Would you like superbase-js to work directly in the browser without any build/transformation steps?
I opened an issue with some more details - and I'm totally willing to work on this 🤗
https://github.com/supabase/supabase/issues/11180JuanFcoRomero
12/22/2022, 11:33 AMJuanFcoRomero
12/22/2022, 12:12 PMIThinkWong
12/22/2022, 1:18 PMgaryaustin
12/22/2022, 1:58 PMsilentworks
12/22/2022, 2:09 PMsilentworks
12/22/2022, 2:13 PMsilentworks
12/22/2022, 2:16 PMAnurag
12/22/2022, 3:05 PMChensokheng
12/22/2022, 5:46 PMSupaSquad
members?garyaustin
12/22/2022, 5:49 PMChensokheng
12/22/2022, 5:51 PMstrxkeskit
12/22/2022, 8:02 PMgaryaustin
12/22/2022, 8:20 PMstrxkeskit
12/22/2022, 8:21 PMMigu
12/22/2022, 10:18 PMauth.signUp
/ auth.admin.createUser
/ etc)?
supabase/supabase-js ? supabase/supabase ? supabase/gotrue ?garyaustin
12/22/2022, 10:23 PMMigu
12/22/2022, 10:36 PMinsert into auth.users
🥲 we're migrating a project that needs 100k+ accounts and whilst the public data is easy with a single insert, auth users are a lot longer because we're insert them one by oneElfhild
12/23/2022, 12:38 AMgaryaustin
12/23/2022, 12:43 AMJesuscc9
12/23/2022, 2:39 AMsupabase.functions.setAuth(token)