Icon doesn't appear on thread view addSidebarContentPanel

71 views
Skip to first unread message

Alice T

unread,
Oct 4, 2022, 12:24:09 PM10/4/22
to InboxSDK
I'm using the new gmail @inboxsdk/core: 0.2.16. However, I noticed when I click on a different icon in the sidebar and reload the page. The icon for my app disappears in the sidebar and I'm noticing the following error: 

Error logged: Error: addCompanionThreadIconArea: no tablist
    at n (inboxsdk.js:27:1)
    at inboxsdk.js:28:1
    at b (inboxsdk.js:7:1)
    at v.dispatch (inboxsdk.js:8:1)
    at g._emitValue (inboxsdk.js:8:1)
    at g._handlePrimaryValue (inboxsdk.js:8:1)
    at g._handlePrimaryAny (inboxsdk.js:8:1)
    at _$handlePrimaryAny (inboxsdk.js:8:1)
    at b (inboxsdk.js:7:1)
    at v.dispatch (inboxsdk.js:8:1)
    at g._emitValue (inboxsdk.js:8:1)
    at g._handleValue (inboxsdk.js:8:1)
    at g._handleAny (inboxsdk.js:7:1)
    at _$handleAny (inboxsdk.js:7:1)
    at b (inboxsdk.js:7:1)
    at v.dispatch (inboxsdk.js:8:1)
    at A._emitValue (inboxsdk.js:8:1)
    at Object.t (inboxsdk.js:7:1)
    at HTMLBodyElement.o (inboxsdk.js:7:1)
    at inboxsdk.js:51:1
    at Function.value (inboxsdk.js:51:1)
    at HTMLBodyElement.<anonymous> (inboxsdk.js:51:1)
    at inboxsdk.js:48:1
    at b (inboxsdk.js:7:1)
    at v.dispatch (inboxsdk.js:8:1)
    at g._emitValue (inboxsdk.js:8:1)
    at g._handlePrimaryValue (inboxsdk.js:8:1)
    at g._handlePrimaryAny (inboxsdk.js:8:1)
    at _$handlePrimaryAny (inboxsdk.js:8:1)
    at b (inboxsdk.js:7:1)
    at v.dispatch (inboxsdk.js:8:1)
    at Ue._emitValue (inboxsdk.js:8:1)
    at Ue._handleSubAny (inboxsdk.js:8:1)
    at Pe._$handleSubAny (inboxsdk.js:8:1)
    at b (inboxsdk.js:7:1)
    at v.dispatch (inboxsdk.js:8:1)
    at y._emitValue (inboxsdk.js:8:1)
    at y._handleValue (inboxsdk.js:8:1)
    at y._handleAny (inboxsdk.js:7:1)
    at _$handleAny (inboxsdk.js:7:1) 

Any ideas?

Abhishek Jain

unread,
Oct 5, 2022, 12:41:30 PM10/5/22
to InboxSDK
Is it possible to share a code snippet of what exactly you're trying and I can spend some time debugging? 

Alice

unread,
Oct 6, 2022, 12:31:46 PM10/6/22
to InboxSDK
The following is an example code snippet: 

import { load } from '@inboxsdk/core';

// Add id here
const inboxSDKAppId = '';

const loadInContentScript = async () => {
    const sdk = await load(2, inboxSDKAppId, undefined);
    sdk.Conversations.registerThreadViewHandler((threadView) => {
          const div = document.createElement('div');
          div.innerHTML = 'Hello World';
          await threadView.addSidebarContentPanel({
                el: div,
                title: 'Sidebar Title',
                // App icon
           });
    });
};

loadInContentScript();
Reply all
Reply to author
Forward
0 new messages