supabase/realtime-js

WARN: Require cycle: node_modules/@supabase/realtime-js/dist/main/RealtimeSubscription.js

wootsbot opened this issue ยท 6 comments

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

CleanShot 2022-06-18 at 02 33 40@2x

System information

  • OS: [macOS]
  • Version of supabase-js: 1.35.3
  • Version of Node.js: 16

transferring this one over to the realtime repo ๐Ÿ‘

@kiwicopple I can't see it to give it continuity

@kiwicopple I can't see it to give it continuity

@wootsbot what do you mean?

@wootsbot going to close this one and track it #160 since it's the same issue.

thanks team I'll be watching @w3b6x9 @kiwicopple

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",