How to get user's chat channels?

I want to get user’s chat channels list.

const UserJoinedChannels = async () => {
    const sendbirdChat = await SendbirdChat.init({
      appId: APP_ID,
      localCacheEnabled: true,
    });

    await sendbirdChat.connect(props.userObj.email);
    console.log('sendbird connected!')
    const userUpdateParams = new UserUpdateParams();
    userUpdateParams.nickname = props.userObj.displayName;
    userUpdateParams.userId = props.userObj.email;
    await sendbirdChat.updateCurrentUserInfo(userUpdateParams);

    sb = sendbirdChat;
    updateState({ ...state });
    const [channels, error] = await loadChannels();
    if (error) {
      return onError(error);
    }
    updateState({ ...state, channels: channels });
    console.log(state);
  }

  const loadChannels = async () => {
    try {
        const groupChannelQuery = sb.groupChannel.createMyGroupChannelListQuery({ limit: 30, includeEmpty: true });
        const channels = await groupChannelQuery.next();
        return [channels, null];
    } catch (error) {
        return [null, error];
    }


  }

  const onError = (error) => {
    updateState({ ...state, error: error.message });
    console.log(error);
  }

I used that code, but I can’t get channels

Hi @C_Gone,

Welcome to the Sendbird Community.

Can you tell me what version of the Sendbird SDK you’re utilizing?

@sendbird/chat”: “^4.0.0-beta.6”,
@sendbird/uikit-react”: “^3.0.0-beta.2”,
“sendbird”: “^3.1.11”,
“sendbird-uikit”: “^2.7.0”,

Hi @C_Gone,

Is there any reason you’re combining multiple versions of both the UIKit and Core SDKS?