require.js error on Magento 2
And because of this error, sometimes the cart and checkout pages don't load properly. Any clue how to fix this? I've already tried to regenerate the pub/static folder, but it's still the same.
Thanks in advance!
This is the custom script I added. Not sure if this is what's causing the conflict?
jQuery( document ).ready( function( $ ) {var quotes = $('.rollover');
var quoteIndex = -1;
function showNextQuote() {
++quoteIndex;
quotes.eq(quoteIndex % quotes.length)
.fadeIn(500)
.delay(4000)
.fadeOut(500, showNextQuote);
}
showNextQuote();switch (window.location.pathname) {
case '/faq-delivery/':
$( '#accordion' ).accordion();} } );
And my require.js link: https://www.floweraddict.com/pub/static/version1499097796/frontend/Mgs/organie/en_US/requirejs/require.js
magento-2.1 error requirejs
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
And because of this error, sometimes the cart and checkout pages don't load properly. Any clue how to fix this? I've already tried to regenerate the pub/static folder, but it's still the same.
Thanks in advance!
This is the custom script I added. Not sure if this is what's causing the conflict?
jQuery( document ).ready( function( $ ) {var quotes = $('.rollover');
var quoteIndex = -1;
function showNextQuote() {
++quoteIndex;
quotes.eq(quoteIndex % quotes.length)
.fadeIn(500)
.delay(4000)
.fadeOut(500, showNextQuote);
}
showNextQuote();switch (window.location.pathname) {
case '/faq-delivery/':
$( '#accordion' ).accordion();} } );
And my require.js link: https://www.floweraddict.com/pub/static/version1499097796/frontend/Mgs/organie/en_US/requirejs/require.js
magento-2.1 error requirejs
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Please add the error you are receiving. Without this, we have no idea what you're experiencing. You might also want to read up on how to ask a question: stackoverflow.com/help/how-to-ask
– andy jones
Jul 3 '17 at 15:03
2
Possible duplicate of Uncaught Error: Mismatched anonymous when calling JQuery in Magento 2 frontend
– Ben Crook
Jul 3 '17 at 15:15
add a comment |
And because of this error, sometimes the cart and checkout pages don't load properly. Any clue how to fix this? I've already tried to regenerate the pub/static folder, but it's still the same.
Thanks in advance!
This is the custom script I added. Not sure if this is what's causing the conflict?
jQuery( document ).ready( function( $ ) {var quotes = $('.rollover');
var quoteIndex = -1;
function showNextQuote() {
++quoteIndex;
quotes.eq(quoteIndex % quotes.length)
.fadeIn(500)
.delay(4000)
.fadeOut(500, showNextQuote);
}
showNextQuote();switch (window.location.pathname) {
case '/faq-delivery/':
$( '#accordion' ).accordion();} } );
And my require.js link: https://www.floweraddict.com/pub/static/version1499097796/frontend/Mgs/organie/en_US/requirejs/require.js
magento-2.1 error requirejs
And because of this error, sometimes the cart and checkout pages don't load properly. Any clue how to fix this? I've already tried to regenerate the pub/static folder, but it's still the same.
Thanks in advance!
This is the custom script I added. Not sure if this is what's causing the conflict?
jQuery( document ).ready( function( $ ) {var quotes = $('.rollover');
var quoteIndex = -1;
function showNextQuote() {
++quoteIndex;
quotes.eq(quoteIndex % quotes.length)
.fadeIn(500)
.delay(4000)
.fadeOut(500, showNextQuote);
}
showNextQuote();switch (window.location.pathname) {
case '/faq-delivery/':
$( '#accordion' ).accordion();} } );
And my require.js link: https://www.floweraddict.com/pub/static/version1499097796/frontend/Mgs/organie/en_US/requirejs/require.js
magento-2.1 error requirejs
magento-2.1 error requirejs
edited Jul 3 '17 at 16:19
Lord A.
asked Jul 3 '17 at 14:58
Lord A.Lord A.
1613
1613
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Please add the error you are receiving. Without this, we have no idea what you're experiencing. You might also want to read up on how to ask a question: stackoverflow.com/help/how-to-ask
– andy jones
Jul 3 '17 at 15:03
2
Possible duplicate of Uncaught Error: Mismatched anonymous when calling JQuery in Magento 2 frontend
– Ben Crook
Jul 3 '17 at 15:15
add a comment |
Please add the error you are receiving. Without this, we have no idea what you're experiencing. You might also want to read up on how to ask a question: stackoverflow.com/help/how-to-ask
– andy jones
Jul 3 '17 at 15:03
2
Possible duplicate of Uncaught Error: Mismatched anonymous when calling JQuery in Magento 2 frontend
– Ben Crook
Jul 3 '17 at 15:15
Please add the error you are receiving. Without this, we have no idea what you're experiencing. You might also want to read up on how to ask a question: stackoverflow.com/help/how-to-ask
– andy jones
Jul 3 '17 at 15:03
Please add the error you are receiving. Without this, we have no idea what you're experiencing. You might also want to read up on how to ask a question: stackoverflow.com/help/how-to-ask
– andy jones
Jul 3 '17 at 15:03
2
2
Possible duplicate of Uncaught Error: Mismatched anonymous when calling JQuery in Magento 2 frontend
– Ben Crook
Jul 3 '17 at 15:15
Possible duplicate of Uncaught Error: Mismatched anonymous when calling JQuery in Magento 2 frontend
– Ben Crook
Jul 3 '17 at 15:15
add a comment |
2 Answers
2
active
oldest
votes
This has been asked many times:
- Magento 2: Mismatched anonymous define() module
- Uncaught Error: Mismatched anonymous when calling JQuery in Magento 2 frontend
- Uncaught Error: Mismatched anonymous define() module in magento 2 .?
- Require Js Error: Mismatched anonymous define() module: function Magento 2
It can be caused by quite a few things, it's much easier to help if you include your Javascript. I'll paste my answer from another question.
According to the Require JS docs it's on of the following cases:
Be sure to load all scripts that call define() via the RequireJS API.
Do not manually code script tags in HTML to load scripts that have
define() calls in them.If you manually code an HTML script tag, be sure it only includes
named modules, and that an anonymous module that will have the same
name as one of the modules in that file is not loaded.If the problem is the use of loader plugins or anonymous modules but
the RequireJS optimizer is not used for file bundling, use the
RequireJS optimizer.If the problem is the var define lint approach, use /*global define
*/ (no space before "global") comment style instead.
If you manually code a script tag in HTML to load a script with an anonymous define() call, this error can occur.
If you manually code a script tag in HTML to load a script that has a few named modules, but then try to load an anonymous module that ends up having the same name as one of the named modules in the script loaded by the manually coded script tag.
If you use the loader plugins or anonymous modules (modules that call define() with no string ID) but do not use the RequireJS optimizer to combine files together, this error can occur. The optimizer knows how to name anonymous modules correctly so that they can be combined with other modules in an optimized file.
If you use var define; at the top of your file for jshint/jslint purposes, this will cause a problem for the optimizer because it avoids parsing files that declare a define variable, since that may indicate a script that was created by a concatenation of some scripts that use a local define.
Thanks Ben. I did not really touch or created this, as we just bought the theme we're currently using. You can have a look at the file here: floweraddict.com/pub/static/version1499097796/frontend/Mgs/…
– Lord A.
Jul 3 '17 at 16:08
This is the custom Javascript I added, not sure if this is what's causing the conflict:jQuery( document ).ready( function( $ ) { var quotes = $(".rollover"); var quoteIndex = -1; function showNextQuote() { ++quoteIndex; quotes.eq(quoteIndex % quotes.length) .fadeIn(500) .delay(4000) .fadeOut(500, showNextQuote); } showNextQuote(); switch (window.location.pathname) { case '/faq-delivery/': $( "#accordion" ).accordion(); } } );
– Lord A.
Jul 3 '17 at 16:09
If you remove the JS you've added does the error still occur? Also, make you you have flushed all caches and deletedvar/view_preprocessed
,pub/static/frontend
andpub/static/_requirejs
. Then compile your static files again (runphp bin/magento setup:static-content:deploy
if you don't know what I mean).
– Ben Crook
Jul 3 '17 at 16:27
add a comment |
- Open up
app/etc/di.xml
and find thevirtualType name="developerMaterialization"
section. In that section you'll
find an itemname="view_preprocessed"
that needs to be modified or
deleted. You can modify it by changing the contents from
MagentoFrameworkAppViewAssetMaterializationStrategySymlink
toMagentoFrameworkAppViewAssetMaterializationStrategyCopy
- Delete the files under pub/static to get rid of any existing symlinks. You may want to be careful not to delete the .htaccess
file.
or uou can run below commands :
a. php bin/magento setup:static-content:deploy &
b. php bin/magento setup:upgrade
Thank you, but what is this supposed to do exactly? Just make the error go away?
– Lord A.
Jul 5 '17 at 15:17
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%2f181842%2frequire-js-error-on-magento-2%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
This has been asked many times:
- Magento 2: Mismatched anonymous define() module
- Uncaught Error: Mismatched anonymous when calling JQuery in Magento 2 frontend
- Uncaught Error: Mismatched anonymous define() module in magento 2 .?
- Require Js Error: Mismatched anonymous define() module: function Magento 2
It can be caused by quite a few things, it's much easier to help if you include your Javascript. I'll paste my answer from another question.
According to the Require JS docs it's on of the following cases:
Be sure to load all scripts that call define() via the RequireJS API.
Do not manually code script tags in HTML to load scripts that have
define() calls in them.If you manually code an HTML script tag, be sure it only includes
named modules, and that an anonymous module that will have the same
name as one of the modules in that file is not loaded.If the problem is the use of loader plugins or anonymous modules but
the RequireJS optimizer is not used for file bundling, use the
RequireJS optimizer.If the problem is the var define lint approach, use /*global define
*/ (no space before "global") comment style instead.
If you manually code a script tag in HTML to load a script with an anonymous define() call, this error can occur.
If you manually code a script tag in HTML to load a script that has a few named modules, but then try to load an anonymous module that ends up having the same name as one of the named modules in the script loaded by the manually coded script tag.
If you use the loader plugins or anonymous modules (modules that call define() with no string ID) but do not use the RequireJS optimizer to combine files together, this error can occur. The optimizer knows how to name anonymous modules correctly so that they can be combined with other modules in an optimized file.
If you use var define; at the top of your file for jshint/jslint purposes, this will cause a problem for the optimizer because it avoids parsing files that declare a define variable, since that may indicate a script that was created by a concatenation of some scripts that use a local define.
Thanks Ben. I did not really touch or created this, as we just bought the theme we're currently using. You can have a look at the file here: floweraddict.com/pub/static/version1499097796/frontend/Mgs/…
– Lord A.
Jul 3 '17 at 16:08
This is the custom Javascript I added, not sure if this is what's causing the conflict:jQuery( document ).ready( function( $ ) { var quotes = $(".rollover"); var quoteIndex = -1; function showNextQuote() { ++quoteIndex; quotes.eq(quoteIndex % quotes.length) .fadeIn(500) .delay(4000) .fadeOut(500, showNextQuote); } showNextQuote(); switch (window.location.pathname) { case '/faq-delivery/': $( "#accordion" ).accordion(); } } );
– Lord A.
Jul 3 '17 at 16:09
If you remove the JS you've added does the error still occur? Also, make you you have flushed all caches and deletedvar/view_preprocessed
,pub/static/frontend
andpub/static/_requirejs
. Then compile your static files again (runphp bin/magento setup:static-content:deploy
if you don't know what I mean).
– Ben Crook
Jul 3 '17 at 16:27
add a comment |
This has been asked many times:
- Magento 2: Mismatched anonymous define() module
- Uncaught Error: Mismatched anonymous when calling JQuery in Magento 2 frontend
- Uncaught Error: Mismatched anonymous define() module in magento 2 .?
- Require Js Error: Mismatched anonymous define() module: function Magento 2
It can be caused by quite a few things, it's much easier to help if you include your Javascript. I'll paste my answer from another question.
According to the Require JS docs it's on of the following cases:
Be sure to load all scripts that call define() via the RequireJS API.
Do not manually code script tags in HTML to load scripts that have
define() calls in them.If you manually code an HTML script tag, be sure it only includes
named modules, and that an anonymous module that will have the same
name as one of the modules in that file is not loaded.If the problem is the use of loader plugins or anonymous modules but
the RequireJS optimizer is not used for file bundling, use the
RequireJS optimizer.If the problem is the var define lint approach, use /*global define
*/ (no space before "global") comment style instead.
If you manually code a script tag in HTML to load a script with an anonymous define() call, this error can occur.
If you manually code a script tag in HTML to load a script that has a few named modules, but then try to load an anonymous module that ends up having the same name as one of the named modules in the script loaded by the manually coded script tag.
If you use the loader plugins or anonymous modules (modules that call define() with no string ID) but do not use the RequireJS optimizer to combine files together, this error can occur. The optimizer knows how to name anonymous modules correctly so that they can be combined with other modules in an optimized file.
If you use var define; at the top of your file for jshint/jslint purposes, this will cause a problem for the optimizer because it avoids parsing files that declare a define variable, since that may indicate a script that was created by a concatenation of some scripts that use a local define.
Thanks Ben. I did not really touch or created this, as we just bought the theme we're currently using. You can have a look at the file here: floweraddict.com/pub/static/version1499097796/frontend/Mgs/…
– Lord A.
Jul 3 '17 at 16:08
This is the custom Javascript I added, not sure if this is what's causing the conflict:jQuery( document ).ready( function( $ ) { var quotes = $(".rollover"); var quoteIndex = -1; function showNextQuote() { ++quoteIndex; quotes.eq(quoteIndex % quotes.length) .fadeIn(500) .delay(4000) .fadeOut(500, showNextQuote); } showNextQuote(); switch (window.location.pathname) { case '/faq-delivery/': $( "#accordion" ).accordion(); } } );
– Lord A.
Jul 3 '17 at 16:09
If you remove the JS you've added does the error still occur? Also, make you you have flushed all caches and deletedvar/view_preprocessed
,pub/static/frontend
andpub/static/_requirejs
. Then compile your static files again (runphp bin/magento setup:static-content:deploy
if you don't know what I mean).
– Ben Crook
Jul 3 '17 at 16:27
add a comment |
This has been asked many times:
- Magento 2: Mismatched anonymous define() module
- Uncaught Error: Mismatched anonymous when calling JQuery in Magento 2 frontend
- Uncaught Error: Mismatched anonymous define() module in magento 2 .?
- Require Js Error: Mismatched anonymous define() module: function Magento 2
It can be caused by quite a few things, it's much easier to help if you include your Javascript. I'll paste my answer from another question.
According to the Require JS docs it's on of the following cases:
Be sure to load all scripts that call define() via the RequireJS API.
Do not manually code script tags in HTML to load scripts that have
define() calls in them.If you manually code an HTML script tag, be sure it only includes
named modules, and that an anonymous module that will have the same
name as one of the modules in that file is not loaded.If the problem is the use of loader plugins or anonymous modules but
the RequireJS optimizer is not used for file bundling, use the
RequireJS optimizer.If the problem is the var define lint approach, use /*global define
*/ (no space before "global") comment style instead.
If you manually code a script tag in HTML to load a script with an anonymous define() call, this error can occur.
If you manually code a script tag in HTML to load a script that has a few named modules, but then try to load an anonymous module that ends up having the same name as one of the named modules in the script loaded by the manually coded script tag.
If you use the loader plugins or anonymous modules (modules that call define() with no string ID) but do not use the RequireJS optimizer to combine files together, this error can occur. The optimizer knows how to name anonymous modules correctly so that they can be combined with other modules in an optimized file.
If you use var define; at the top of your file for jshint/jslint purposes, this will cause a problem for the optimizer because it avoids parsing files that declare a define variable, since that may indicate a script that was created by a concatenation of some scripts that use a local define.
This has been asked many times:
- Magento 2: Mismatched anonymous define() module
- Uncaught Error: Mismatched anonymous when calling JQuery in Magento 2 frontend
- Uncaught Error: Mismatched anonymous define() module in magento 2 .?
- Require Js Error: Mismatched anonymous define() module: function Magento 2
It can be caused by quite a few things, it's much easier to help if you include your Javascript. I'll paste my answer from another question.
According to the Require JS docs it's on of the following cases:
Be sure to load all scripts that call define() via the RequireJS API.
Do not manually code script tags in HTML to load scripts that have
define() calls in them.If you manually code an HTML script tag, be sure it only includes
named modules, and that an anonymous module that will have the same
name as one of the modules in that file is not loaded.If the problem is the use of loader plugins or anonymous modules but
the RequireJS optimizer is not used for file bundling, use the
RequireJS optimizer.If the problem is the var define lint approach, use /*global define
*/ (no space before "global") comment style instead.
If you manually code a script tag in HTML to load a script with an anonymous define() call, this error can occur.
If you manually code a script tag in HTML to load a script that has a few named modules, but then try to load an anonymous module that ends up having the same name as one of the named modules in the script loaded by the manually coded script tag.
If you use the loader plugins or anonymous modules (modules that call define() with no string ID) but do not use the RequireJS optimizer to combine files together, this error can occur. The optimizer knows how to name anonymous modules correctly so that they can be combined with other modules in an optimized file.
If you use var define; at the top of your file for jshint/jslint purposes, this will cause a problem for the optimizer because it avoids parsing files that declare a define variable, since that may indicate a script that was created by a concatenation of some scripts that use a local define.
answered Jul 3 '17 at 15:17
Ben CrookBen Crook
8,6822172
8,6822172
Thanks Ben. I did not really touch or created this, as we just bought the theme we're currently using. You can have a look at the file here: floweraddict.com/pub/static/version1499097796/frontend/Mgs/…
– Lord A.
Jul 3 '17 at 16:08
This is the custom Javascript I added, not sure if this is what's causing the conflict:jQuery( document ).ready( function( $ ) { var quotes = $(".rollover"); var quoteIndex = -1; function showNextQuote() { ++quoteIndex; quotes.eq(quoteIndex % quotes.length) .fadeIn(500) .delay(4000) .fadeOut(500, showNextQuote); } showNextQuote(); switch (window.location.pathname) { case '/faq-delivery/': $( "#accordion" ).accordion(); } } );
– Lord A.
Jul 3 '17 at 16:09
If you remove the JS you've added does the error still occur? Also, make you you have flushed all caches and deletedvar/view_preprocessed
,pub/static/frontend
andpub/static/_requirejs
. Then compile your static files again (runphp bin/magento setup:static-content:deploy
if you don't know what I mean).
– Ben Crook
Jul 3 '17 at 16:27
add a comment |
Thanks Ben. I did not really touch or created this, as we just bought the theme we're currently using. You can have a look at the file here: floweraddict.com/pub/static/version1499097796/frontend/Mgs/…
– Lord A.
Jul 3 '17 at 16:08
This is the custom Javascript I added, not sure if this is what's causing the conflict:jQuery( document ).ready( function( $ ) { var quotes = $(".rollover"); var quoteIndex = -1; function showNextQuote() { ++quoteIndex; quotes.eq(quoteIndex % quotes.length) .fadeIn(500) .delay(4000) .fadeOut(500, showNextQuote); } showNextQuote(); switch (window.location.pathname) { case '/faq-delivery/': $( "#accordion" ).accordion(); } } );
– Lord A.
Jul 3 '17 at 16:09
If you remove the JS you've added does the error still occur? Also, make you you have flushed all caches and deletedvar/view_preprocessed
,pub/static/frontend
andpub/static/_requirejs
. Then compile your static files again (runphp bin/magento setup:static-content:deploy
if you don't know what I mean).
– Ben Crook
Jul 3 '17 at 16:27
Thanks Ben. I did not really touch or created this, as we just bought the theme we're currently using. You can have a look at the file here: floweraddict.com/pub/static/version1499097796/frontend/Mgs/…
– Lord A.
Jul 3 '17 at 16:08
Thanks Ben. I did not really touch or created this, as we just bought the theme we're currently using. You can have a look at the file here: floweraddict.com/pub/static/version1499097796/frontend/Mgs/…
– Lord A.
Jul 3 '17 at 16:08
This is the custom Javascript I added, not sure if this is what's causing the conflict:
jQuery( document ).ready( function( $ ) { var quotes = $(".rollover"); var quoteIndex = -1; function showNextQuote() { ++quoteIndex; quotes.eq(quoteIndex % quotes.length) .fadeIn(500) .delay(4000) .fadeOut(500, showNextQuote); } showNextQuote(); switch (window.location.pathname) { case '/faq-delivery/': $( "#accordion" ).accordion(); } } );
– Lord A.
Jul 3 '17 at 16:09
This is the custom Javascript I added, not sure if this is what's causing the conflict:
jQuery( document ).ready( function( $ ) { var quotes = $(".rollover"); var quoteIndex = -1; function showNextQuote() { ++quoteIndex; quotes.eq(quoteIndex % quotes.length) .fadeIn(500) .delay(4000) .fadeOut(500, showNextQuote); } showNextQuote(); switch (window.location.pathname) { case '/faq-delivery/': $( "#accordion" ).accordion(); } } );
– Lord A.
Jul 3 '17 at 16:09
If you remove the JS you've added does the error still occur? Also, make you you have flushed all caches and deleted
var/view_preprocessed
, pub/static/frontend
and pub/static/_requirejs
. Then compile your static files again (run php bin/magento setup:static-content:deploy
if you don't know what I mean).– Ben Crook
Jul 3 '17 at 16:27
If you remove the JS you've added does the error still occur? Also, make you you have flushed all caches and deleted
var/view_preprocessed
, pub/static/frontend
and pub/static/_requirejs
. Then compile your static files again (run php bin/magento setup:static-content:deploy
if you don't know what I mean).– Ben Crook
Jul 3 '17 at 16:27
add a comment |
- Open up
app/etc/di.xml
and find thevirtualType name="developerMaterialization"
section. In that section you'll
find an itemname="view_preprocessed"
that needs to be modified or
deleted. You can modify it by changing the contents from
MagentoFrameworkAppViewAssetMaterializationStrategySymlink
toMagentoFrameworkAppViewAssetMaterializationStrategyCopy
- Delete the files under pub/static to get rid of any existing symlinks. You may want to be careful not to delete the .htaccess
file.
or uou can run below commands :
a. php bin/magento setup:static-content:deploy &
b. php bin/magento setup:upgrade
Thank you, but what is this supposed to do exactly? Just make the error go away?
– Lord A.
Jul 5 '17 at 15:17
add a comment |
- Open up
app/etc/di.xml
and find thevirtualType name="developerMaterialization"
section. In that section you'll
find an itemname="view_preprocessed"
that needs to be modified or
deleted. You can modify it by changing the contents from
MagentoFrameworkAppViewAssetMaterializationStrategySymlink
toMagentoFrameworkAppViewAssetMaterializationStrategyCopy
- Delete the files under pub/static to get rid of any existing symlinks. You may want to be careful not to delete the .htaccess
file.
or uou can run below commands :
a. php bin/magento setup:static-content:deploy &
b. php bin/magento setup:upgrade
Thank you, but what is this supposed to do exactly? Just make the error go away?
– Lord A.
Jul 5 '17 at 15:17
add a comment |
- Open up
app/etc/di.xml
and find thevirtualType name="developerMaterialization"
section. In that section you'll
find an itemname="view_preprocessed"
that needs to be modified or
deleted. You can modify it by changing the contents from
MagentoFrameworkAppViewAssetMaterializationStrategySymlink
toMagentoFrameworkAppViewAssetMaterializationStrategyCopy
- Delete the files under pub/static to get rid of any existing symlinks. You may want to be careful not to delete the .htaccess
file.
or uou can run below commands :
a. php bin/magento setup:static-content:deploy &
b. php bin/magento setup:upgrade
- Open up
app/etc/di.xml
and find thevirtualType name="developerMaterialization"
section. In that section you'll
find an itemname="view_preprocessed"
that needs to be modified or
deleted. You can modify it by changing the contents from
MagentoFrameworkAppViewAssetMaterializationStrategySymlink
toMagentoFrameworkAppViewAssetMaterializationStrategyCopy
- Delete the files under pub/static to get rid of any existing symlinks. You may want to be careful not to delete the .htaccess
file.
or uou can run below commands :
a. php bin/magento setup:static-content:deploy &
b. php bin/magento setup:upgrade
edited Jul 4 '17 at 12:59
answered Jul 4 '17 at 12:52
Charvi ParikhCharvi Parikh
533413
533413
Thank you, but what is this supposed to do exactly? Just make the error go away?
– Lord A.
Jul 5 '17 at 15:17
add a comment |
Thank you, but what is this supposed to do exactly? Just make the error go away?
– Lord A.
Jul 5 '17 at 15:17
Thank you, but what is this supposed to do exactly? Just make the error go away?
– Lord A.
Jul 5 '17 at 15:17
Thank you, but what is this supposed to do exactly? Just make the error go away?
– Lord A.
Jul 5 '17 at 15:17
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f181842%2frequire-js-error-on-magento-2%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
Please add the error you are receiving. Without this, we have no idea what you're experiencing. You might also want to read up on how to ask a question: stackoverflow.com/help/how-to-ask
– andy jones
Jul 3 '17 at 15:03
2
Possible duplicate of Uncaught Error: Mismatched anonymous when calling JQuery in Magento 2 frontend
– Ben Crook
Jul 3 '17 at 15:15