yt-channel-info icon indicating copy to clipboard operation
yt-channel-info copied to clipboard

LOG [TypeError: undefined is not a function]

Open milokili opened this issue 2 years ago • 1 comments

Not sure why there's an error but it goes as follow

LOG [TypeError: undefined is not a function]

Code:

const payload = { channelId: 'UCXuqSBlHAE6Xw-yeJA0Tunw', // Required channelIdType: 0 }

ytch.getChannelInfo(payload).then((response) => { if (!response.alertMessage) { console.log(response) } else { console.log('Channel could not be found.') // throw response.alertMessage } }).catch((err) => { console.log(err) }) }, []);

milokili avatar Jan 29 '23 00:01 milokili

This is on the latest version, but the earlier version seems to work just fine

milokili avatar Jan 29 '23 05:01 milokili