Title: Syntax/Reference/Type Errors with JS &#8211; how to fix?
Last modified: July 7, 2020

---

# Syntax/Reference/Type Errors with JS – how to fix?

 *  [entrancedbywilderness](https://wordpress.org/support/users/entrancedbywilderness/)
 * (@entrancedbywilderness)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/syntax-reference-type-errors-with-js-how-to-fix/)
 * I have a strange error of recent, that seems to be related to both Elementor 
   and Jetpack so far, though disabling one or the other doesn’t remove it. I have
   been changing around Optimising tools, and i thought they might also be a problem,
   but even without them i still get the problem.
    How do i fix these issues? I 
   can’t edit any posts or change Jetpack settings at all!
 * These are two pages with errors i’ve copied below (Jetpack settings, and an Elementor
   post edit)
 * **JETPACK ERRORS (settings page):**
    Uncaught SyntaxError: missing ) after argument
   list admin.php?page=jetpack:547 Uncaught ReferenceError: moment is not defined
   at admin.php?page=jetpack:547 admin.php?page=jetpack:564 Uncaught TypeError: 
   Cannot read property ‘setLocaleData’ of undefined at admin.php?page=jetpack:564
   at admin.php?page=jetpack:565 admin.php?page=jetpack:577 Uncaught TypeError: 
   Cannot read property ‘use’ of undefined at admin.php?page=jetpack:577 at admin.
   php?page=jetpack:579 admin.php?page=jetpack:587 Uncaught TypeError: Cannot read
   property ‘setLocaleData’ of undefined at admin.php?page=jetpack:587 at admin.
   php?page=jetpack:588 backbone.min.js?ver=1.4.0:2 Uncaught TypeError: Cannot read
   property ‘extend’ of undefined at backbone.min.js?ver=1.4.0:2 at backbone.min.
   js?ver=1.4.0:2 at backbone.min.js?ver=1.4.0:2 backbone.marionette.min.js?ver=
   2.4.5:22 Uncaught TypeError: Cannot read property ‘ChildViewContainer’ of undefined
   at backbone.marionette.min.js?ver=2.4.5:22 at backbone.marionette.min.js?ver=
   2.4.5:22 at backbone.marionette.min.js?ver=2.4.5:22 at backbone.marionette.min.
   js?ver=2.4.5:22 backbone.radio.min.js?ver=1.0.4:3 Uncaught TypeError: Cannot 
   use ‘in’ operator to search for ‘default’ in undefined at backbone.radio.min.
   js?ver=1.0.4:3 at backbone.radio.min.js?ver=1.0.4:3 at backbone.radio.min.js?
   ver=1.0.4:3 common-modules.min.js?ver=2.9.13:2 Uncaught ReferenceError: Marionette
   is not defined at Object.<anonymous> (common-modules.min.js?ver=2.9.13:2) at 
   __webpack_require__ (common-modules.min.js?ver=2.9.13:2) at Object.<anonymous
   > (common-modules.min.js?ver=2.9.13:2) at __webpack_require__ (common-modules.
   min.js?ver=2.9.13:2) at Object.<anonymous> (common-modules.min.js?ver=2.9.13:
   2) at __webpack_require__ (common-modules.min.js?ver=2.9.13:2) at common-modules.
   min.js?ver=2.9.13:2 at common-modules.min.js?ver=2.9.13:2 common.min.js?ver=2.9.13:
   2 Uncaught ReferenceError: Marionette is not defined at Object.<anonymous> (common.
   min.js?ver=2.9.13:2) at __webpack_require__ (common.min.js?ver=2.9.13:2) at Object.
   <anonymous> (common.min.js?ver=2.9.13:2) at __webpack_require__ (common.min.js?
   ver=2.9.13:2) at Object.<anonymous> (common.min.js?ver=2.9.13:2) at __webpack_require__(
   common.min.js?ver=2.9.13:2) at Object.<anonymous> (common.min.js?ver=2.9.13:2)
   at __webpack_require__ (common.min.js?ver=2.9.13:2) at Object.<anonymous> (common.
   min.js?ver=2.9.13:2) at __webpack_require__ (common.min.js?ver=2.9.13:2) keycodes.
   min.js?ver=46e6adf844a1e989da37d39c64fca9e2:2 Uncaught TypeError: Object(…) is
   not a function at Module.449 (keycodes.min.js?ver=46e6adf844a1e989da37d39c64fca9e2:
   2) at r (keycodes.min.js?ver=46e6adf844a1e989da37d39c64fca9e2:2) at wp.keycodes.
   1 (keycodes.min.js?ver=46e6adf844a1e989da37d39c64fca9e2:2) at keycodes.min.js?
   ver=46e6adf844a1e989da37d39c64fca9e2:2 data.min.js?ver=e80048e7b309581a40e44b8bd8aaba41:
   2 Uncaught TypeError: Object(…) is not a function at Module.426 (data.min.js?
   ver=e80048e7b309581a40e44b8bd8aaba41:2) at r (data.min.js?ver=e80048e7b309581a40e44b8bd8aaba41:
   2) at wp.data.0 (data.min.js?ver=e80048e7b309581a40e44b8bd8aaba41:2) at data.
   min.js?ver=e80048e7b309581a40e44b8bd8aaba41:2 rich-text.min.js?ver=942ff14b26cac991c71bdc5fd907ea4b:
   7 Uncaught TypeError: Cannot read property ‘combineReducers’ of undefined at 
   Module.424 (rich-text.min.js?ver=942ff14b26cac991c71bdc5fd907ea4b:7) at r (rich-
   text.min.js?ver=942ff14b26cac991c71bdc5fd907ea4b:2) at wp.richText.0 (rich-text.
   min.js?ver=942ff14b26cac991c71bdc5fd907ea4b:2) at rich-text.min.js?ver=942ff14b26cac991c71bdc5fd907ea4b:
   2 compose.min.js?ver=3c7f1e5a90aa3c9e9b0f65014efccb35:2 Uncaught TypeError: Object(…)
   is not a function at compose.min.js?ver=3c7f1e5a90aa3c9e9b0f65014efccb35:2 at
   Object.<anonymous> (components.min.js?ver=90861a4430fed183d94d6750cb7ae6f4:7)
   at n (components.min.js?ver=90861a4430fed183d94d6750cb7ae6f4:2) at Object.<anonymous
   > (components.min.js?ver=90861a4430fed183d94d6750cb7ae6f4:7) at n (components.
   min.js?ver=90861a4430fed183d94d6750cb7ae6f4:2) at Object.<anonymous> (components.
   min.js?ver=90861a4430fed183d94d6750cb7ae6f4:7) at n (components.min.js?ver=90861a4430fed183d94d6750cb7ae6f4:
   2) at Module.<anonymous> (components.min.js?ver=90861a4430fed183d94d6750cb7ae6f4:
   7) at n (components.min.js?ver=90861a4430fed183d94d6750cb7ae6f4:2) at components.
   min.js?ver=90861a4430fed183d94d6750cb7ae6f4:2 admin.js?ver=8.6.1:71 Uncaught 
   TypeError: Object(…) is not a function at Module.<anonymous> (admin.js?ver=8.6.1:
   71) at n (admin.js?ver=8.6.1:1) at admin.js?ver=8.6.1:1 at admin.js?ver=8.6.1:
   1 notes-common-v2.js?ver=8.6.1-202028:32 Uncaught TypeError: Cannot read property‘
   extend’ of undefined at notes-common-v2.js?ver=8.6.1-202028:32 at notes-common-
   v2.js?ver=8.6.1-202028:158 admin-bar-v2.js?ver=8.6.1-202028:3 Uncaught TypeError:
   Cannot read property ‘extend’ of undefined at admin-bar-v2.js?ver=8.6.1-202028:
   3 at admin-bar-v2.js?ver=8.6.1-202028:70 admin.min.js?ver=2.9.13:2 Uncaught ReferenceError:
   elementorCommon is not defined at child.initTemplatesImport (admin.min.js?ver
   =2.9.13:2) at child.e.each.r.<computed> [as initTemplatesImport] (common-modules.
   min.js?ver=2.9.13:2) at child.onInit (admin.min.js?ver=2.9.13:2) at child.e.each.
   r.<computed> [as onInit] (common-modules.min.js?ver=2.9.13:2) at child.Module.
   trigger (common-modules.min.js?ver=2.9.13:2) at child.e.each.r.<computed> [as
   trigger] (common-modules.min.js?ver=2.9.13:2) at init (common-modules.min.js?
   ver=2.9.13:2) at child.Module (common-modules.min.js?ver=2.9.13:2) at child [
   as constructor] (common-modules.min.js?ver=2.9.13:2) at new child (common-modules.
   min.js?ver=2.9.13:2)
 * **ELEMENTOR EDIT ERRORS (from a blog post):**
    Uncaught SyntaxError: missing )
   after argument list post.php:147 Uncaught ReferenceError: wp is not defined at
   post.php:147 at post.php:148 post.php:5168 Uncaught ReferenceError: acf is not
   defined at post.php:5168 post.php:5172 Uncaught ReferenceError: acf is not defined
   at post.php:5172 load-scripts.php:431 Uncaught TypeError: Cannot set property‘
   coerce’ of undefined at load-scripts.php:431 at load-scripts.php:431 post.php:
   5220 Uncaught TypeError: Cannot read property ‘setLocaleData’ of undefined at
   post.php:5220 at post.php:5221 post.php:5336 Uncaught ReferenceError: tinymce
   is not defined at post.php:5336 wp-langs-en.js:235 Uncaught ReferenceError: tinyMCE
   is not defined at wp-langs-en.js:235 at wp-langs-en.js:516 post.php:5330 Uncaught
   ReferenceError: tinymce is not defined at Object.load_ext (post.php:5330) at 
   post.php:5341 backbone.min.js:2 Uncaught TypeError: Cannot read property ‘extend’
   of undefined at backbone.min.js:2 at backbone.min.js:2 at backbone.min.js:2 wp-
   util.min.js:2 Uncaught TypeError: Cannot read property ‘memoize’ of undefined
   at wp-util.min.js:2 at wp-util.min.js:2 wp-backbone.min.js:2 Uncaught ReferenceError:
   Backbone is not defined at wp-backbone.min.js:2 at wp-backbone.min.js:2 media-
   models.min.js:2 Uncaught TypeError: Cannot read property ‘extend’ of undefined
   at Object.23 (media-models.min.js:2) at r (media-models.min.js:2) at Object.22(
   media-models.min.js:2) at r (media-models.min.js:2) at media-models.min.js:2 
   at media-models.min.js:2 wp-plupload.min.js:1 Uncaught TypeError: Cannot read
   property ‘Attachments’ of undefined at wp-plupload.min.js:1 at wp-plupload.min.
   js:1 media-views.min.js:2 Uncaught TypeError: Cannot set property ‘l10n’ of undefined
   at Object.<anonymous> (media-views.min.js:2) at o (media-views.min.js:2) at Object.
   <anonymous> (media-views.min.js:2) at o (media-views.min.js:2) at media-views.
   min.js:2 at media-views.min.js:2 gallery-settings.min.js:5 Uncaught TypeError:
   Cannot read property ‘Settings’ of undefined at gallery-settings.min.js:5 at 
   gallery-settings.min.js:5 notes-common-v2.js:32 Uncaught ReferenceError: Backbone
   is not defined at notes-common-v2.js:32 at notes-common-v2.js:158 admin-bar-v2.
   js:2 Uncaught ReferenceError: Backbone is not defined at admin-bar-v2.js:2 acf-
   input.min.js:4 Uncaught TypeError: Cannot read property ‘autop’ of undefined 
   at acf.Model.onReady (acf-input.min.js:4) at u (acf-input.min.js:1) at Object.
   i (acf-input.min.js:1) at Object.i.doAction (acf-input.min.js:1) at HTMLDocument.
   <anonymous> (acf-input.min.js:1) at i (load-scripts.php:2) at Object.fireWith[
   as resolveWith] (load-scripts.php:2) at Function.ready (load-scripts.php:2) at
   HTMLDocument.J (load-scripts.php:2)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsyntax-reference-type-errors-with-js-how-to-fix%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [nabeelzahid](https://wordpress.org/support/users/nabeelzahid/)
 * (@nabeelzahid)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/syntax-reference-type-errors-with-js-how-to-fix/#post-13082073)
 * These all details are very helpful and you will check only for help this one.
   [https://jealouscomputers.com/how-to-screenshot-on-windows/](https://jealouscomputers.com/how-to-screenshot-on-windows/)
 *  Thread Starter [entrancedbywilderness](https://wordpress.org/support/users/entrancedbywilderness/)
 * (@entrancedbywilderness)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/syntax-reference-type-errors-with-js-how-to-fix/#post-13084545)
 * I’m not really sure what you are implying. A screenshot of the same code will
   hardly help?
 *  Thread Starter [entrancedbywilderness](https://wordpress.org/support/users/entrancedbywilderness/)
 * (@entrancedbywilderness)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/syntax-reference-type-errors-with-js-how-to-fix/#post-13084708)
 * Here is a screenshot of the first part anyway.
    [https://prnt.sc/td6r1r](https://prnt.sc/td6r1r)
 *  Thread Starter [entrancedbywilderness](https://wordpress.org/support/users/entrancedbywilderness/)
 * (@entrancedbywilderness)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/syntax-reference-type-errors-with-js-how-to-fix/#post-13093628)
 * bump
 *  [nabeelzahid](https://wordpress.org/support/users/nabeelzahid/)
 * (@nabeelzahid)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/syntax-reference-type-errors-with-js-how-to-fix/#post-13145270)
 * Great website and looking so good post. [Laptops](https://mytravelgadget.com/)

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

The topic ‘Syntax/Reference/Type Errors with JS – how to fix?’ is closed to new 
replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [nabeelzahid](https://wordpress.org/support/users/nabeelzahid/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/syntax-reference-type-errors-with-js-how-to-fix/#post-13145270)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
