Title: Uncaught ReferenceError: jQuery is not defined
Last modified: April 10, 2017

---

# Uncaught ReferenceError: jQuery is not defined

 *  Resolved [Troglos](https://wordpress.org/support/users/troglos/)
 * (@troglos)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-11/)
 * If MP3 is activated I get this error:
 *     ```
       Uncaught ReferenceError: jQuery is not defined
           at Object.<anonymous> (public.js?ver=3.0.0-beta.25:151)
           at __webpack_require__ (public.js?ver=3.0.0-beta.25:20)
           at Object.<anonymous> (public.js?ver=3.0.0-beta.25:73)
           at __webpack_require__ (public.js?ver=3.0.0-beta.25:20)
           at Object.<anonymous> (public.js?ver=3.0.0-beta.25:48)
           at __webpack_require__ (public.js?ver=3.0.0-beta.25:20)
           at public.js?ver=3.0.0-beta.25:40
           at public.js?ver=3.0.0-beta.25:43
       ```
   
 * and more precisely at #149 of public.js
 * /***/ function(module, exports) {
    module.exports = jQuery; /***/ }
 * Any suggestion?
    Thank you

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

 *  [Wysija](https://wordpress.org/support/users/wysija/)
 * (@wysija)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-11/#post-9018016)
 * Hello Troglos,
 * Thank you for the issue report.
    Could you please let us know on which page(s)
   do you get this error, and if you use any MailPoet widgets on your site? That
   will help us to understand the issue better. Thanks!
 * Regards,
    MailPoet Team.
 *  Thread Starter [Troglos](https://wordpress.org/support/users/troglos/)
 * (@troglos)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-11/#post-9018058)
 * I just found the culprit.
    I had in functions.php the following:
 *     ```
       /**
        * Move jQuery to the footer. 
        */
       function wpse_173601_enqueue_scripts() {
           wp_scripts()->add_data( 'jquery', 'group', 1 );
           wp_scripts()->add_data( 'jquery-core', 'group', 1 );
           wp_scripts()->add_data( 'jquery-migrate', 'group', 1 );
       }
       add_action( 'wp_enqueue_scripts', 'wpse_173601_enqueue_scripts' );
       ```
   
 * It’s ok with other plugins but not with MP3
 *  [Wysija](https://wordpress.org/support/users/wysija/)
 * (@wysija)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-11/#post-9023266)
 * Re,
 * Thanks for the update and we’re glad that you found the culprit!
 * MailPoet Team.
 *  [fburatti](https://wordpress.org/support/users/fburatti/)
 * (@fburatti)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-11/#post-9517402)
 * [https://wordpress.org/support/topic/enqueuing-script-mailpoet-3-fix/](https://wordpress.org/support/topic/enqueuing-script-mailpoet-3-fix/)

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

The topic ‘Uncaught ReferenceError: jQuery is not defined’ is closed to new replies.

 * ![](https://ps.w.org/mailpoet/assets/icon-256x256.png?rev=3284564)
 * [MailPoet - Newsletters, Email Marketing, and Automation](https://wordpress.org/plugins/mailpoet/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailpoet/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailpoet/)
 * [Active Topics](https://wordpress.org/support/plugin/mailpoet/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailpoet/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailpoet/reviews/)

## Tags

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

 * 4 replies
 * 3 participants
 * Last reply from: [fburatti](https://wordpress.org/support/users/fburatti/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-11/#post-9517402)
 * Status: resolved