Title: TypeError: can&#8217;t convert undefined to object
Last modified: June 30, 2020

---

# TypeError: can’t convert undefined to object

 *  Resolved [jtsroberts](https://wordpress.org/support/users/jtsroberts/)
 * (@jtsroberts)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/typeerror-cant-convert-undefined-to-object/)
 * I am trying to get the YourChannel plugin working with a basic channel, however
   I’m seeing a few console errors.
 * unreachable code after return statement
    yrc.js:466:3 TypeError: YRC.EM.on is
   not a function yrc.js:987:9 unreachable code after return statement yrc.js:466:
   3 YRC_API_LOADED yrc.js:106:11 TypeError: can’t convert undefined to object yrc.
   js:109:10 onYouTubeIframeAPIReady [https://www.clinic88.com.au/wp-content/plugins/yourchannel/js/yrc.js?0.9.9.4:109](https://www.clinic88.com.au/wp-content/plugins/yourchannel/js/yrc.js?0.9.9.4:109)
   <anonymous> [https://s.ytimg.com/yts/jsbin/www-widgetapi-vflYlgBFi/www-widgetapi.js:38](https://s.ytimg.com/yts/jsbin/www-widgetapi-vflYlgBFi/www-widgetapi.js:38)
   <anonymous> [https://s.ytimg.com/yts/jsbin/www-widgetapi-vflYlgBFi/www-widgetapi.js:38](https://s.ytimg.com/yts/jsbin/www-widgetapi-vflYlgBFi/www-widgetapi.js:38)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftypeerror-cant-convert-undefined-to-object%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [plugin.builders](https://wordpress.org/support/users/pluginbuilders/)
 * (@pluginbuilders)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/typeerror-cant-convert-undefined-to-object/#post-13054759)
 * Hi, your site has very old jQuery, can you upgrade it?
 *  Thread Starter [jtsroberts](https://wordpress.org/support/users/jtsroberts/)
 * (@jtsroberts)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/typeerror-cant-convert-undefined-to-object/#post-13055978)
 * Yep, I did see that. I’ve updated jQuery to 3.5.1 and all is working fine now.
 * Thanks for your help 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘TypeError: can’t convert undefined to object’ is closed to new replies.

 * ![](https://ps.w.org/yourchannel/assets/icon-256x256.png?rev=1106592)
 * [YourChannel: Everything you want in a YouTube plugin.](https://wordpress.org/plugins/yourchannel/)
 * [Support Threads](https://wordpress.org/support/plugin/yourchannel/)
 * [Active Topics](https://wordpress.org/support/plugin/yourchannel/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yourchannel/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yourchannel/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [jtsroberts](https://wordpress.org/support/users/jtsroberts/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/typeerror-cant-convert-undefined-to-object/#post-13055978)
 * Status: resolved