I have been trying to disable JQMIGRATE but everything I have tried has not worked. I have followed the instructions present within the jquery folder in Magento 2.

But its still showing as Active. I have in Magento

  • Reindex
  • Cache
  • Static:content:deploy

But its not disabled. Could this be a browser or Magento issue.


I followed kind of like the same path as @thaddeusmt but I only added things at a custom requirejs-config.js file:

require(['jquery'], function(jQuery) {
    jQuery.migrateMute = true;

var config = {};
  • This seems the least intrusive or destructive method. Too bad the init shim doesn't work on loading jquery, because that would be the ideal solution Sep 26 '19 at 10:09
  • Many thanks for this Jisse
    – diazwatson
    Sep 6 '20 at 23:33

I ended up overriding the core jquery-migrate in our theme so I could set the migrateMute option.

In my theme require-jsconfig.js I set this override:

var config = {
  paths: {
    // disable jQuery migrate console output
    'jquery/jquery-migrate': 'js/jquery-migrate'

Then copied the code jquery-migrate.js file to the theme js directory, and added this line towards the top:

// Set to true to prevent console output; migrateWarnings still maintained
jQuery.migrateMute = true;
  • We are also seeingthis in M2.3.1. : is this still the proposed solution? (vanilla install)
    – snh_nl
    Apr 23 '19 at 7:05
  • @thaddeusmt, by doing this, Jqmigrate will remove from the site or it just not visible in the console
    – Siva
    May 29 '19 at 11:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.