# Is anyone else getting a SendbirdError: Invalid parameter error just by using the ChannelList component?

**URL:** <https://community.sendbird.com/t/is-anyone-else-getting-a-sendbirderror-invalid-parameter-error-just-by-using-the-channellist-component/1741>\
**Category:** React\
**Tags:** javascript, uikit\
**Created:** [February 23, 2021, 3:01pm UTC](https://community.sendbird.com/t/is-anyone-else-getting-a-sendbirderror-invalid-parameter-error-just-by-using-the-channellist-component/1741 "2021-02-23T15:01:02Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![mwq27](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@mwq27](https://community.sendbird.com/u/mwq27)\
**Post date:** [February 23, 2021, 3:01pm UTC](https://community.sendbird.com/t/is-anyone-else-getting-a-sendbirderror-invalid-parameter-error-just-by-using-the-channellist-component/1741/1 "2021-02-23T15:01:02Z")

</div>

In my React application, I’m using the SendbirdProvider with both the Channel and ChannelList components. The ChannelList component is constantly throwing the “Invalid Parameter” error. I’ve tried using the component with no props, and with the onSelectChannel prop, still get the error.

Has anyone else seen this behavior?

uikit v2.0.2  
MacOS

---

<div class="post-metadata">

**Author:** ![Tyler](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/tyler/32/810_2.png) [@Tyler](https://community.sendbird.com/u/Tyler)\
**Post date:** [February 23, 2021, 3:13pm UTC](https://community.sendbird.com/t/is-anyone-else-getting-a-sendbirderror-invalid-parameter-error-just-by-using-the-channellist-component/1741/2 "2021-02-23T15:13:05Z")

</div>

Hello @mwq27,

First off, welcome to the Sendbird Community. We’re happy to have you here!  
Could you provide your implementation of the UIKit please?

That would be really appreciated.

-Tyler

---

<div class="post-metadata">

**Author:** ![mwq27](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@mwq27](https://community.sendbird.com/u/mwq27)\
**Post date:** [February 23, 2021, 3:32pm UTC](https://community.sendbird.com/t/is-anyone-else-getting-a-sendbirderror-invalid-parameter-error-just-by-using-the-channellist-component/1741/3 "2021-02-23T15:32:50Z")

</div>

It’s basically like this:

```
// index.tsx
...
<SendBirdProvider appId="..." nickname=".." config={{ logLevel: 'all' }}>
  <Chat />
</SendBirdProvider>

// Chat.tsx
const Chat = () => {
  return (
    <div>
        <Channel channelUrl={channelUrl} />
        <ChannelList />
    </div>
  )
}

export default withSendBird(Chat);
```

---

<div class="post-metadata">

**Author:** ![Tyler](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/tyler/32/810_2.png) [@Tyler](https://community.sendbird.com/u/Tyler)\
**Post date:** [February 23, 2021, 3:45pm UTC](https://community.sendbird.com/t/is-anyone-else-getting-a-sendbirderror-invalid-parameter-error-just-by-using-the-channellist-component/1741/4 "2021-02-23T15:45:06Z")

</div>

@mwq27,

Thank you for that. Could you provide a stack trace of the error you’re seeing?

Thanks,  
Tyler

---

<div class="post-metadata">

**Author:** ![mwq27](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@mwq27](https://community.sendbird.com/u/mwq27)\
**Post date:** [February 23, 2021, 4:03pm UTC](https://community.sendbird.com/t/is-anyone-else-getting-a-sendbirderror-invalid-parameter-error-just-by-using-the-channellist-component/1741/5 "2021-02-23T16:03:22Z")

</div>

![Screen Shot 2021-02-23 at 10.01.08 AM](https://us1.discourse-cdn.com/flex020/uploads/sendbird/original/1X/20c2fd9ac0e851e78fa25e3942deaa34f313964b.png)  
It seems to come from this useEffect in the ChannelList component. I think ‘currentChannel’ is null, and that’s throwing an error in Sendbird.min.js. Here’s what shows in the console:

```
SendBird.min.js:6 Uncaught (in promise) SendBirdException: Invalid parameter.
at Function.get (http://localhost:3000/portal/v2/static/js/0.chunk.js:556173:16)
at Function.value (http://localhost:3000/portal/v2/static/js/0.chunk.js:556165:404)
at Function.value (http://localhost:3000/portal/v2/static/js/0.chunk.js:561217:21)
at http://localhost:3000/portal/v2/static/js/0.chunk.js:539007:22
at commitHookEffectListMount (http://localhost:3000/portal/v2/static/js/2.chunk.js:79515:30)
at commitPassiveHookEffects (http://localhost:3000/portal/v2/static/js/2.chunk.js:79552:15)
at HTMLUnknownElement.callCallback (http://localhost:3000/portal/v2/static/js/2.chunk.js:60094:18)
at Object.invokeGuardedCallbackDev (http://localhost:3000/portal/v2/static/js/2.chunk.js:60143:20)
at invokeGuardedCallback (http://localhost:3000/portal/v2/static/js/2.chunk.js:60196:35)
at flushPassiveEffectsImpl (http://localhost:3000/portal/v2/static/js/2.chunk.js:82616:13)
at unstable_runWithPriority (http://localhost:3000/portal/v2/static/js/2.chunk.js:91200:16)
at runWithPriority$1 (http://localhost:3000/portal/v2/static/js/2.chunk.js:70982:14)
at flushPassiveEffects (http://localhost:3000/portal/v2/static/js/2.chunk.js:82584:16)
at performSyncWorkOnRoot (http://localhost:3000/portal/v2/static/js/2.chunk.js:81499:7)
at http://localhost:3000/portal/v2/static/js/2.chunk.js:71036:28
at unstable_runWithPriority (http://localhost:3000/portal/v2/static/js/2.chunk.js:91200:16)
at runWithPriority$1 (http://localhost:3000/portal/v2/static/js/2.chunk.js:70982:14)
at flushSyncCallbackQueueImpl (http://localhost:3000/portal/v2/static/js/2.chunk.js:71031:11)
at flushSyncCallbackQueue (http://localhost:3000/portal/v2/static/js/2.chunk.js:71019:7)
at batchedUpdates$1 (http://localhost:3000/portal/v2/static/js/2.chunk.js:81624:11)
at Object.notify (http://localhost:3000/portal/v2/static/js/0.chunk.js:498081:7)
at Subscription.notifyNestedSubs (http://localhost:3000/portal/v2/static/js/0.chunk.js:498123:20)
at Subscription.handleChangeWrapper (http://localhost:3000/portal/v2/static/js/0.chunk.js:498128:12)
```

---

<div class="post-metadata">

**Author:** ![Tyler](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/tyler/32/810_2.png) [@Tyler](https://community.sendbird.com/u/Tyler)\
**Post date:** [February 23, 2021, 4:06pm UTC](https://community.sendbird.com/t/is-anyone-else-getting-a-sendbirderror-invalid-parameter-error-just-by-using-the-channellist-component/1741/6 "2021-02-23T16:06:01Z")

</div>

Does this get thrown when you load the channel list or when you click on a channel?

---

<div class="post-metadata">

**Author:** ![mwq27](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@mwq27](https://community.sendbird.com/u/mwq27)\
**Post date:** [February 23, 2021, 4:07pm UTC](https://community.sendbird.com/t/is-anyone-else-getting-a-sendbirderror-invalid-parameter-error-just-by-using-the-channellist-component/1741/7 "2021-02-23T16:07:05Z")

</div>

Just loading the ChannelList will throw it.

---

<div class="post-metadata">

**Author:** ![Tyler](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/tyler/32/810_2.png) [@Tyler](https://community.sendbird.com/u/Tyler)\
**Post date:** [February 23, 2021, 4:10pm UTC](https://community.sendbird.com/t/is-anyone-else-getting-a-sendbirderror-invalid-parameter-error-just-by-using-the-channellist-component/1741/8 "2021-02-23T16:10:51Z")

</div>

Thanks. Let me see if I can recreate this, and see if anything stands out.

---

<div class="post-metadata">

**Author:** ![Tyler](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/tyler/32/810_2.png) [@Tyler](https://community.sendbird.com/u/Tyler)\
**Post date:** [February 23, 2021, 4:40pm UTC](https://community.sendbird.com/t/is-anyone-else-getting-a-sendbirderror-invalid-parameter-error-just-by-using-the-channellist-component/1741/9 "2021-02-23T16:40:31Z")

</div>

I have not been able to recreate this error using UIKit 2.0.2. Can you provide me your compiled tsx? You can DM me if you’d prefer.

Thanks,  
Tyler

---

<div class="post-metadata">

**Author:** ![oroce](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/oroce/32/999_2.png) [@oroce](https://community.sendbird.com/u/oroce)\
**Post date:** [February 27, 2021, 5:57pm UTC](https://community.sendbird.com/t/is-anyone-else-getting-a-sendbirderror-invalid-parameter-error-just-by-using-the-channellist-component/1741/10 "2021-02-27T17:57:14Z")

</div>

Did you manage to resolve this issue?

I’m facing this issue when I’m rendering `ChannelList` directly, previously when I was rendering `App` (from `sendbird-uikit`) I couldn’t reproduce this.

---

<div class="post-metadata">

**Author:** ![Tyler](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/tyler/32/810_2.png) [@Tyler](https://community.sendbird.com/u/Tyler)\
**Post date:** [February 27, 2021, 10:35pm UTC](https://community.sendbird.com/t/is-anyone-else-getting-a-sendbirderror-invalid-parameter-error-just-by-using-the-channellist-component/1741/11 "2021-02-27T22:35:19Z")

</div>

Hi @oroce,

We have not yet resolved the issue but a colleague and I were able to reproduce the behavior. I’m currently investigating.

-Tyler

---

<div class="post-metadata">

**Author:** ![oroce](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/oroce/32/999_2.png) [@oroce](https://community.sendbird.com/u/oroce)\
**Post date:** [March 1, 2021, 12:37pm UTC](https://community.sendbird.com/t/is-anyone-else-getting-a-sendbirderror-invalid-parameter-error-just-by-using-the-channellist-component/1741/12 "2021-03-01T12:37:03Z")

</div>

Thanks. In development mode the create-react-app shows a huge error screen due to the exception, fortunately, that’s not the case in production so we can live with it right now.

If I can help you resolve the issue let me know!

Cheers,

Robert

---

<div class="post-metadata">

**Author:** ![bryancresswell](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/bryancresswell/32/1595_2.png) [@bryancresswell](https://community.sendbird.com/u/bryancresswell)\
**Post date:** [August 26, 2021, 8:04am UTC](https://community.sendbird.com/t/is-anyone-else-getting-a-sendbirderror-invalid-parameter-error-just-by-using-the-channellist-component/1741/13 "2021-08-26T08:04:02Z")

</div>

I’m getting this too, and I’m on 2.3.2

---

<div class="post-metadata">

**Author:** ![Flemin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/flemin/32/1683_2.png) [@Flemin](https://community.sendbird.com/u/Flemin)\
**Post date:** [October 12, 2021, 11:03am UTC](https://community.sendbird.com/t/is-anyone-else-getting-a-sendbirderror-invalid-parameter-error-just-by-using-the-channellist-component/1741/14 "2021-10-12T11:03:12Z")

</div>

Is this resolved? I’m getting this error and there’s no way to debug

---

<div class="post-metadata">

**Author:** ![Souvik\_Banerjee](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/souvik_banerjee/32/2849_2.png) [@Souvik\_Banerjee](https://community.sendbird.com/u/Souvik_Banerjee)\
**Post date:** [August 8, 2022, 7:41am UTC](https://community.sendbird.com/t/is-anyone-else-getting-a-sendbirderror-invalid-parameter-error-just-by-using-the-channellist-component/1741/15 "2022-08-08T07:41:20Z")

</div>

I’m getting this error on 3.1.0 too. any way to resolve this?

---

<div class="post-metadata">

**Author:** ![Abdul\_Rehman](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/abdul_rehman/32/5779_2.png) [@Abdul\_Rehman](https://community.sendbird.com/u/Abdul_Rehman)\
**Post date:** [March 5, 2025, 1:55pm UTC](https://community.sendbird.com/t/is-anyone-else-getting-a-sendbirderror-invalid-parameter-error-just-by-using-the-channellist-component/1741/16 "2025-03-05T13:55:13Z")

</div>

I was getting this error too and managed to resolve it with this prop `enableLegacyChannelModules`.

```auto
<SendbirdApp
                appId="appId"
                userId={'userid'}
                accessToken={'token'}
                allowProfileEdit
                config={{
                  logLevel: "all",
                }}
                isMessageGroupingEnabled
                enableLegacyChannelModules
                nickname={'Test'}
                theme="dark"
              />

```

I’m using `"@sendbird/uikit-react": "^3.9.2",`.
