How to disable JQMigrate LoggingDisable JQMIGRATE in Magento 2How best to restore the javascript console in Chrome/ developer tools in dev environment?Disable onChange event at page loadLogging to custom file is not working from module helperHow to disable category in magento 2 programmaticallyDisable a Custom Checkout StepMagento 2 custom logger 'Missing required argument $name'Magento 2 : Disable RequireJS (and all JavaScript)UI Component - Disable Fieldset CollectionMagento 2 layered navigation Ajax jquery problemMagento 2 - 2.3.1. Warning “JQMIGRATE: Migrate is installed with logging active, version 1.4.1”
Checkmate in 1 on a Tangled Board
Losing queen and then winning the game
What verb for taking advantage fits in "I don't want to ________ on the friendship"?
for xml path('') output
How can a valley surrounded by mountains be fertile and rainy?
How can I deal with extreme temperatures in a hotel room?
Put my student loan in parents’ second mortgage - help?
Security Patch SUPEE-11155 - Possible issues?
Word ending in "-ine" for rat-like
What kind of jet plane is this?
Does Latin have any neuter words for humans?
Is it okay to submit a paper from a master's thesis without informing the advisor?
Can European countries bypass the EU and make their own individual trade deal with the U.S.?
How is this practical and very old scene shot?
The warming up game
Could this problem be tackled using Mathematica?
What exactly did Ant-Man see that made him say that their plan worked?
Is it possible to have a character with proficiency in all martial weapons without proficiency in Medium armor?
Can one use the present progressive or gerund like an adjective?
13th chords on guitar
How do we separate rules of logic from non-logical constraints?
Do home values typically rise and fall at a consistent percent?
Does a return economy-class seat between London and San Francisco release 5.28 tonnes of CO2 equivalents?
How can I tell what kind of genitals people have without gender?
How to disable JQMigrate Logging
Disable JQMIGRATE in Magento 2How best to restore the javascript console in Chrome/ developer tools in dev environment?Disable onChange event at page loadLogging to custom file is not working from module helperHow to disable category in magento 2 programmaticallyDisable a Custom Checkout StepMagento 2 custom logger 'Missing required argument $name'Magento 2 : Disable RequireJS (and all JavaScript)UI Component - Disable Fieldset CollectionMagento 2 layered navigation Ajax jquery problemMagento 2 - 2.3.1. Warning “JQMIGRATE: Migrate is installed with logging active, version 1.4.1”
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
We keep receiving this log and stack trace from JQMigrate, but it seems to just be a warning. Is there a way to just straight up disable logging in production?
magento-2.1 javascript jquery
add a comment |
We keep receiving this log and stack trace from JQMigrate, but it seems to just be a warning. Is there a way to just straight up disable logging in production?
magento-2.1 javascript jquery
add a comment |
We keep receiving this log and stack trace from JQMigrate, but it seems to just be a warning. Is there a way to just straight up disable logging in production?
magento-2.1 javascript jquery
We keep receiving this log and stack trace from JQMigrate, but it seems to just be a warning. Is there a way to just straight up disable logging in production?
magento-2.1 javascript jquery
magento-2.1 javascript jquery
asked Sep 21 '17 at 20:50
codestrcodestr
1982 silver badges17 bronze badges
1982 silver badges17 bronze badges
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
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;
Going to mark this as the selected answer, as it's a bit cleaner than the first method that was given.
– codestr
Feb 5 '18 at 22:17
This helped, but didn't hide everything for me; I also had to includejQuery.migrateTrace = false;
– user7290573
Apr 18 at 9:15
add a comment |
In order not to overwrite any magento core files I just created a javascript file with this code
require(
['jquery'],
function ($)
$.migrateMute = true;
$.migrateTrace = false;
);
I included the file in the head in default.xml
<link src="js/disable-jquery-migrate-warnings.js" />
add a comment |
A little bit hacky way but it works. You can create requirejs-config.js
file in your theme and reassign jquery-migrate
to an empty file
Example:
var config =
paths:
'jquery/jquery-migrate': 'js/empty'
,
;
and create empty file js/empty.js
This works and I'll mark as accepted since its the only solution thats been offered, but I'd rather avoid having to make the request for the file at all if it's not going to be used.
– codestr
Nov 28 '17 at 15:19
add a comment |
The solution posted by @thaddeusmt works great but I found an even better one.
If you already have a js file you include everywhere, you can just add this to the top:
require(['jquery'], function($)
$.migrateMute = true;
);
so it looks something like this:
require(['jquery'], function($)
$.migrateMute = true;
);
// the rest of the js file...
require([
"jquery",
"jquery/ui",
"mage/translate",
"domReady!",
"Magento_Ui/js/modal/modal"
], function ($)
// ...
);
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f194224%2fhow-to-disable-jqmigrate-logging%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
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;
Going to mark this as the selected answer, as it's a bit cleaner than the first method that was given.
– codestr
Feb 5 '18 at 22:17
This helped, but didn't hide everything for me; I also had to includejQuery.migrateTrace = false;
– user7290573
Apr 18 at 9:15
add a comment |
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;
Going to mark this as the selected answer, as it's a bit cleaner than the first method that was given.
– codestr
Feb 5 '18 at 22:17
This helped, but didn't hide everything for me; I also had to includejQuery.migrateTrace = false;
– user7290573
Apr 18 at 9:15
add a comment |
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;
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;
answered Jan 30 '18 at 17:14
thaddeusmtthaddeusmt
9535 silver badges18 bronze badges
9535 silver badges18 bronze badges
Going to mark this as the selected answer, as it's a bit cleaner than the first method that was given.
– codestr
Feb 5 '18 at 22:17
This helped, but didn't hide everything for me; I also had to includejQuery.migrateTrace = false;
– user7290573
Apr 18 at 9:15
add a comment |
Going to mark this as the selected answer, as it's a bit cleaner than the first method that was given.
– codestr
Feb 5 '18 at 22:17
This helped, but didn't hide everything for me; I also had to includejQuery.migrateTrace = false;
– user7290573
Apr 18 at 9:15
Going to mark this as the selected answer, as it's a bit cleaner than the first method that was given.
– codestr
Feb 5 '18 at 22:17
Going to mark this as the selected answer, as it's a bit cleaner than the first method that was given.
– codestr
Feb 5 '18 at 22:17
This helped, but didn't hide everything for me; I also had to include
jQuery.migrateTrace = false;
– user7290573
Apr 18 at 9:15
This helped, but didn't hide everything for me; I also had to include
jQuery.migrateTrace = false;
– user7290573
Apr 18 at 9:15
add a comment |
In order not to overwrite any magento core files I just created a javascript file with this code
require(
['jquery'],
function ($)
$.migrateMute = true;
$.migrateTrace = false;
);
I included the file in the head in default.xml
<link src="js/disable-jquery-migrate-warnings.js" />
add a comment |
In order not to overwrite any magento core files I just created a javascript file with this code
require(
['jquery'],
function ($)
$.migrateMute = true;
$.migrateTrace = false;
);
I included the file in the head in default.xml
<link src="js/disable-jquery-migrate-warnings.js" />
add a comment |
In order not to overwrite any magento core files I just created a javascript file with this code
require(
['jquery'],
function ($)
$.migrateMute = true;
$.migrateTrace = false;
);
I included the file in the head in default.xml
<link src="js/disable-jquery-migrate-warnings.js" />
In order not to overwrite any magento core files I just created a javascript file with this code
require(
['jquery'],
function ($)
$.migrateMute = true;
$.migrateTrace = false;
);
I included the file in the head in default.xml
<link src="js/disable-jquery-migrate-warnings.js" />
edited Jun 20 at 9:25
Pierre Gauthier
356 bronze badges
356 bronze badges
answered May 8 '18 at 6:42
Popa FelicianPopa Felician
412 bronze badges
412 bronze badges
add a comment |
add a comment |
A little bit hacky way but it works. You can create requirejs-config.js
file in your theme and reassign jquery-migrate
to an empty file
Example:
var config =
paths:
'jquery/jquery-migrate': 'js/empty'
,
;
and create empty file js/empty.js
This works and I'll mark as accepted since its the only solution thats been offered, but I'd rather avoid having to make the request for the file at all if it's not going to be used.
– codestr
Nov 28 '17 at 15:19
add a comment |
A little bit hacky way but it works. You can create requirejs-config.js
file in your theme and reassign jquery-migrate
to an empty file
Example:
var config =
paths:
'jquery/jquery-migrate': 'js/empty'
,
;
and create empty file js/empty.js
This works and I'll mark as accepted since its the only solution thats been offered, but I'd rather avoid having to make the request for the file at all if it's not going to be used.
– codestr
Nov 28 '17 at 15:19
add a comment |
A little bit hacky way but it works. You can create requirejs-config.js
file in your theme and reassign jquery-migrate
to an empty file
Example:
var config =
paths:
'jquery/jquery-migrate': 'js/empty'
,
;
and create empty file js/empty.js
A little bit hacky way but it works. You can create requirejs-config.js
file in your theme and reassign jquery-migrate
to an empty file
Example:
var config =
paths:
'jquery/jquery-migrate': 'js/empty'
,
;
and create empty file js/empty.js
answered Nov 7 '17 at 9:50
JmanJman
1112 bronze badges
1112 bronze badges
This works and I'll mark as accepted since its the only solution thats been offered, but I'd rather avoid having to make the request for the file at all if it's not going to be used.
– codestr
Nov 28 '17 at 15:19
add a comment |
This works and I'll mark as accepted since its the only solution thats been offered, but I'd rather avoid having to make the request for the file at all if it's not going to be used.
– codestr
Nov 28 '17 at 15:19
This works and I'll mark as accepted since its the only solution thats been offered, but I'd rather avoid having to make the request for the file at all if it's not going to be used.
– codestr
Nov 28 '17 at 15:19
This works and I'll mark as accepted since its the only solution thats been offered, but I'd rather avoid having to make the request for the file at all if it's not going to be used.
– codestr
Nov 28 '17 at 15:19
add a comment |
The solution posted by @thaddeusmt works great but I found an even better one.
If you already have a js file you include everywhere, you can just add this to the top:
require(['jquery'], function($)
$.migrateMute = true;
);
so it looks something like this:
require(['jquery'], function($)
$.migrateMute = true;
);
// the rest of the js file...
require([
"jquery",
"jquery/ui",
"mage/translate",
"domReady!",
"Magento_Ui/js/modal/modal"
], function ($)
// ...
);
add a comment |
The solution posted by @thaddeusmt works great but I found an even better one.
If you already have a js file you include everywhere, you can just add this to the top:
require(['jquery'], function($)
$.migrateMute = true;
);
so it looks something like this:
require(['jquery'], function($)
$.migrateMute = true;
);
// the rest of the js file...
require([
"jquery",
"jquery/ui",
"mage/translate",
"domReady!",
"Magento_Ui/js/modal/modal"
], function ($)
// ...
);
add a comment |
The solution posted by @thaddeusmt works great but I found an even better one.
If you already have a js file you include everywhere, you can just add this to the top:
require(['jquery'], function($)
$.migrateMute = true;
);
so it looks something like this:
require(['jquery'], function($)
$.migrateMute = true;
);
// the rest of the js file...
require([
"jquery",
"jquery/ui",
"mage/translate",
"domReady!",
"Magento_Ui/js/modal/modal"
], function ($)
// ...
);
The solution posted by @thaddeusmt works great but I found an even better one.
If you already have a js file you include everywhere, you can just add this to the top:
require(['jquery'], function($)
$.migrateMute = true;
);
so it looks something like this:
require(['jquery'], function($)
$.migrateMute = true;
);
// the rest of the js file...
require([
"jquery",
"jquery/ui",
"mage/translate",
"domReady!",
"Magento_Ui/js/modal/modal"
], function ($)
// ...
);
answered Nov 14 '18 at 12:55
ZankarZankar
1686 bronze badges
1686 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f194224%2fhow-to-disable-jqmigrate-logging%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown