Magento 2 Uncaught SyntaxError: Invalid or unexpected token
When I tried to select the product color swatch and product size I got this error in production mode.
Uncaught SyntaxError: Invalid or unexpected token
at new Function (<anonymous>)
at Function._.template (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:64:39)
at eval (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:6:73)
at $.(anonymous function).(anonymous function)._UpdatePrice (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:37:107)
at $.(anonymous function).(anonymous function).eval [as _UpdatePrice] (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:28:334)
at $.(anonymous function).(anonymous function)._OnClick (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:28:156)
at $.(anonymous function).(anonymous function).eval [as _OnClick] (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:28:334)
at HTMLDivElement.eval (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:24:561)
at HTMLDivElement.dispatch (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:339:447)
at HTMLDivElement.elemData.handle (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:312:172)
magento2 swatches
bumped to the homepage by Community♦ 3 hours ago
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 |
When I tried to select the product color swatch and product size I got this error in production mode.
Uncaught SyntaxError: Invalid or unexpected token
at new Function (<anonymous>)
at Function._.template (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:64:39)
at eval (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:6:73)
at $.(anonymous function).(anonymous function)._UpdatePrice (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:37:107)
at $.(anonymous function).(anonymous function).eval [as _UpdatePrice] (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:28:334)
at $.(anonymous function).(anonymous function)._OnClick (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:28:156)
at $.(anonymous function).(anonymous function).eval [as _OnClick] (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:28:334)
at HTMLDivElement.eval (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:24:561)
at HTMLDivElement.dispatch (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:339:447)
at HTMLDivElement.elemData.handle (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:312:172)
magento2 swatches
bumped to the homepage by Community♦ 3 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
do you use any module witheval
code. if so contact the module developer
– M.Elwan
Mar 31 '18 at 21:19
The problem with the product seem to be when the product has tier price set and what to select the product with color and size... can someone give a hint?
– Vasile Rus
Apr 2 '18 at 6:44
add a comment |
When I tried to select the product color swatch and product size I got this error in production mode.
Uncaught SyntaxError: Invalid or unexpected token
at new Function (<anonymous>)
at Function._.template (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:64:39)
at eval (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:6:73)
at $.(anonymous function).(anonymous function)._UpdatePrice (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:37:107)
at $.(anonymous function).(anonymous function).eval [as _UpdatePrice] (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:28:334)
at $.(anonymous function).(anonymous function)._OnClick (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:28:156)
at $.(anonymous function).(anonymous function).eval [as _OnClick] (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:28:334)
at HTMLDivElement.eval (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:24:561)
at HTMLDivElement.dispatch (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:339:447)
at HTMLDivElement.elemData.handle (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:312:172)
magento2 swatches
When I tried to select the product color swatch and product size I got this error in production mode.
Uncaught SyntaxError: Invalid or unexpected token
at new Function (<anonymous>)
at Function._.template (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:64:39)
at eval (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:6:73)
at $.(anonymous function).(anonymous function)._UpdatePrice (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:37:107)
at $.(anonymous function).(anonymous function).eval [as _UpdatePrice] (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:28:334)
at $.(anonymous function).(anonymous function)._OnClick (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:28:156)
at $.(anonymous function).(anonymous function).eval [as _OnClick] (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:28:334)
at HTMLDivElement.eval (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:24:561)
at HTMLDivElement.dispatch (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:339:447)
at HTMLDivElement.elemData.handle (eval at require.load (http://217.160.142.147/pub/static/version1522436350/_cache/merged/9f0e77a0e649eade7c26426be1fcf110.min.js:170:216), <anonymous>:312:172)
magento2 swatches
magento2 swatches
edited Apr 2 '18 at 10:51
Teja Bhagavan Kollepara
2,97341847
2,97341847
asked Mar 30 '18 at 20:06
Vasile RusVasile Rus
11
11
bumped to the homepage by Community♦ 3 hours ago
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♦ 3 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
do you use any module witheval
code. if so contact the module developer
– M.Elwan
Mar 31 '18 at 21:19
The problem with the product seem to be when the product has tier price set and what to select the product with color and size... can someone give a hint?
– Vasile Rus
Apr 2 '18 at 6:44
add a comment |
do you use any module witheval
code. if so contact the module developer
– M.Elwan
Mar 31 '18 at 21:19
The problem with the product seem to be when the product has tier price set and what to select the product with color and size... can someone give a hint?
– Vasile Rus
Apr 2 '18 at 6:44
do you use any module with
eval
code. if so contact the module developer– M.Elwan
Mar 31 '18 at 21:19
do you use any module with
eval
code. if so contact the module developer– M.Elwan
Mar 31 '18 at 21:19
The problem with the product seem to be when the product has tier price set and what to select the product with color and size... can someone give a hint?
– Vasile Rus
Apr 2 '18 at 6:44
The problem with the product seem to be when the product has tier price set and what to select the product with color and size... can someone give a hint?
– Vasile Rus
Apr 2 '18 at 6:44
add a comment |
1 Answer
1
active
oldest
votes
I installed a module named "Apptrian_Minify". The error beginning after the enable this module.
For fix, just disabled this module. Everything alright.
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%2f220546%2fmagento-2-uncaught-syntaxerror-invalid-or-unexpected-token%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I installed a module named "Apptrian_Minify". The error beginning after the enable this module.
For fix, just disabled this module. Everything alright.
add a comment |
I installed a module named "Apptrian_Minify". The error beginning after the enable this module.
For fix, just disabled this module. Everything alright.
add a comment |
I installed a module named "Apptrian_Minify". The error beginning after the enable this module.
For fix, just disabled this module. Everything alright.
I installed a module named "Apptrian_Minify". The error beginning after the enable this module.
For fix, just disabled this module. Everything alright.
answered Aug 7 '18 at 13:33
carlossorattocarlossoratto
11
11
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%2f220546%2fmagento-2-uncaught-syntaxerror-invalid-or-unexpected-token%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
do you use any module with
eval
code. if so contact the module developer– M.Elwan
Mar 31 '18 at 21:19
The problem with the product seem to be when the product has tier price set and what to select the product with color and size... can someone give a hint?
– Vasile Rus
Apr 2 '18 at 6:44