Closed astrotars closed 7 years ago
Did you recently switch to arrow functions for the event handlers? this
in arrow functions gets defined differently. For event handlers, arrow functions generally won't work if the function relies on this
. https://stackoverflow.com/a/34361380
Bingo! Thanks for the heads up. I didn't even think of that.
🎉 consider changing references to this
to refer to the appropriate variable instead: req
or feedparser
I randomly started seeing
Cannot read property 'read' of undefined
when attempting to run my script.