WARN: Require cycle: node_modules/@supabase/realtime-js/dist/main/RealtimeSubscription.js
wootsbot opened this issue ยท 6 comments
wootsbot commented
Bug report
Describe the bug
I am getting a warning when using supebase
in react native
, I have the following configuration
import AsyncStorage from '@react-native-async-storage/async-storage';
import { createClient } from '@supabase/supabase-js'
const supabaseUrl = YOUR_REACT_NATIVE_SUPABASE_URL
const supabaseAnonKey = YOUR_REACT_NATIVE_SUPABASE_ANON_KEY
export const supabase = createClient(supabaseUrl, supabaseAnonKey, {
localStorage: AsyncStorage as any,
autoRefreshToken: true,
persistSession: true,
detectSessionInUrl: false,
});
When making a query I get the following warning:
Require cycle: node_modules/@supabase/realtime-js/dist/main/RealtimeSubscription.js -> node_modules/@supabase/realtime-js/dist/main/lib/push.js -> node_modules/@supabase/realtime-js/dist/main/RealtimeSubscription.js
To Reproduce
Use the suggest setting to expose the documentation https://supabase.com/docs/guides/with-expo
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
System information
- OS: [macOS]
- Version of supabase-js: 1.35.3
- Version of Node.js: 16
kiwicopple commented
transferring this one over to the realtime repo ๐
wootsbot commented
@kiwicopple I can't see it to give it continuity
w3b6x9 commented
@kiwicopple I can't see it to give it continuity
@wootsbot what do you mean?
wootsbot commented
thanks team I'll be watching @w3b6x9 @kiwicopple
engelzero commented
Upgrading @supabase/supabase-js
to 1.35.6
solves this warning for me.
Both are required.
"@supabase/realtime-js": "^1.7.4",
"@supabase/supabase-js": "^1.35.6",