$.getJSON(\'https://api.twitch.tv/kraken/channels/\' + SLoppierKitty7, function(channel) {
if (channel[\"stream\"] == null) {
var live =\"no\"
} else {
I faced the same issue, and while debugging I came to know about something new.
When you do -
npm install jQuery
It installs the jQuery version 1.7.4 to your project.
And when you do -
npm install jquery
It installs the jQuery version 3.2.1 to your project.
The difference between both the command is just the uppercase Q. So if you are getting this error then you are probably using the old version of jQuery.
You can read more about the first command (the old version) here and about the second command here.