Magento 2 Uncaught SyntaxError: Invalid or unexpected token












0















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)









share|improve this question
















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 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


















0















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)









share|improve this question
















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 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
















0












0








0


0






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)









share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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





















  • 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



















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












1 Answer
1






active

oldest

votes


















0














I installed a module named "Apptrian_Minify". The error beginning after the enable this module.
For fix, just disabled this module. Everything alright.






share|improve this answer























    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
    });


    }
    });














    draft saved

    draft discarded


















    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









    0














    I installed a module named "Apptrian_Minify". The error beginning after the enable this module.
    For fix, just disabled this module. Everything alright.






    share|improve this answer




























      0














      I installed a module named "Apptrian_Minify". The error beginning after the enable this module.
      For fix, just disabled this module. Everything alright.






      share|improve this answer


























        0












        0








        0







        I installed a module named "Apptrian_Minify". The error beginning after the enable this module.
        For fix, just disabled this module. Everything alright.






        share|improve this answer













        I installed a module named "Apptrian_Minify". The error beginning after the enable this module.
        For fix, just disabled this module. Everything alright.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 7 '18 at 13:33









        carlossorattocarlossoratto

        11




        11






























            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            What other Star Trek series did the main TNG cast show up in?

            Berlina muro

            Berlina aerponto