• Resolved LoicTheAztec

    (@lomars)


    The plugin settings for Frontend > Javascript are:

    • Minify JavaScript Files: is enabled
    • Combine JavaScript Files: is enabled
    • Defer Render-blocking JavaScript: is enabled

    I am using WordPress and WooCommerce latests versions, on Storefront theme, and disabled all other plugins that could interact.

    I have the following javascript error displayed on WooCommerce variable products pages only, within the browser console:

    Uncaught TypeError: (0 , u.mapValues) is not a function
        at v (siteground-optimizer-combined-js-3e27ade17e79bbd081b30555ce23b117.js:152:20119)
        at be (siteground-optimizer-combined-js-3e27ade17e79bbd081b30555ce23b117.js:152:21610)
        at siteground-optimizer-combined-js-3e27ade17e79bbd081b30555ce23b117.js:152:21804
        at siteground-optimizer-combined-js-3e27ade17e79bbd081b30555ce23b117.js:159:4073
        at siteground-optimizer-combined-js-3e27ade17e79bbd081b30555ce23b117.js:159:4109
    v @ siteground-optimizer-combined-js-3e27ade17e79bbd081b30555ce23b117.js:152
    be @ siteground-optimizer-combined-js-3e27ade17e79bbd081b30555ce23b117.js:152
    (anonymous) @ siteground-optimizer-combined-js-3e27ade17e79bbd081b30555ce23b117.js:152
    (anonymous) @ siteground-optimizer-combined-js-3e27ade17e79bbd081b30555ce23b117.js:159
    (anonymous) @ siteground-optimizer-combined-js-3e27ade17e79bbd081b30555ce23b117.js:159

    It is related to:

    function v(e) {
        return (0, u.mapValues)(e, ((e,t)=>"function" != typeof e ? e : function() {
            return m[t].apply(null, arguments)
        } ))
    }

    if I disable “Combine JavaScript Files” there is no more error.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Simeon Boev

    (@k3llanved)

    Hello @lomars,

    I used a clean installation of WordPress with Storefront as a theme and WooCommerce and SGOptimizer as active plugins to test the reported issue. I am not able to recreate the on my end issue using a clean installation and the configuration you specified. As your website most likely uses Java Scripts that are not part of a default WordPress, consider using the exclude feature of Combine JavaScript Files as a workaround. Of course, if the website is hosted with our company feel free to contact us via a help desk so we could take a deeper look at the situation.

    Best Regards,

    Simeon Boev

    Plugin Support Simeon Boev

    (@k3llanved)

    Hello @lomars,

    As we haven’t heard back from you about the issue we will mark the topic as resolved. Feel free to post a new thread if you need further assistance from our team.

    Best Regards,

    Simeon Boev

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Javascript error on WooCommerce variable products’ is closed to new replies.