Title: Uncaught TypeError
Last modified: October 26, 2019

---

# Uncaught TypeError

 *  Resolved [webrightnow](https://wordpress.org/support/users/webrightnow/)
 * (@webrightnow)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/uncaught-typeerror-37/)
 * Latest plugin seems to cause 4 different js errors picked up by the Chrome console,
   all starting with
 *     ```
       Uncaught TypeError: Failed to execute 'insertBefore' on 'Node': parameter 1 is not of type 'Node'.
           at prependElement (priority-menu.js?ver=1.1:47)
       ```
   
 * Possible conflict with Twenty Nineteen since priority-menu.js is in the theme’s
   JS folder, however if I disable Responsive Menu the errors disappear.
 * Any way to fix the conflict?
    -  This topic was modified 6 years, 5 months ago by [webrightnow](https://wordpress.org/support/users/webrightnow/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funcaught-typeerror-37%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Thread Starter [webrightnow](https://wordpress.org/support/users/webrightnow/)
 * (@webrightnow)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/uncaught-typeerror-37/#post-12068664)
 * Resolved by removing line 225 in theme’s functions.php:
 * `wp_enqueue_script( 'twentynineteen-priority-menu', get_theme_file_uri( '/js/
   priority-menu.js' ), array(), '1.1', true );`
 * Errors disappeared and menu behaviour not affected.

Viewing 1 replies (of 1 total)

The topic ‘Uncaught TypeError’ is closed to new replies.

 * ![](https://ps.w.org/responsive-menu/assets/icon-256x256.png?rev=1782326)
 * [Responsive Menu - Create Mobile-Friendly Menu](https://wordpress.org/plugins/responsive-menu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/responsive-menu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/responsive-menu/)
 * [Active Topics](https://wordpress.org/support/plugin/responsive-menu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/responsive-menu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/responsive-menu/reviews/)

## Tags

 * [.js errors](https://wordpress.org/support/topic-tag/js-errors/)

 * 1 reply
 * 1 participant
 * Last reply from: [webrightnow](https://wordpress.org/support/users/webrightnow/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/uncaught-typeerror-37/#post-12068664)
 * Status: resolved