yt-channel-info
yt-channel-info copied to clipboard
LOG [TypeError: undefined is not a function]
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) }) }, []);
This is on the latest version, but the earlier version seems to work just fine