Title: Javascript error on WooCommerce variable products
Last modified: August 6, 2023

---

# Javascript error on WooCommerce variable products

 *  Resolved [LoicTheAztec](https://wordpress.org/support/users/lomars/)
 * (@lomars)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/javascript-error-on-woocommerce-variable-products/)
 * 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:
 *     ```wp-block-code
       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:
 *     ```wp-block-code
       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](https://wordpress.org/support/users/k3llanved/)
 * (@k3llanved)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/javascript-error-on-woocommerce-variable-products/#post-16952903)
 * Hello [@lomars](https://wordpress.org/support/users/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](https://wordpress.org/support/users/k3llanved/)
 * (@k3llanved)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/javascript-error-on-woocommerce-variable-products/#post-16988446)
 * Hello [@lomars](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/sg-cachepress/assets/icon-256x256.gif?rev=2971889)
 * [Speed Optimizer - The All-In-One Performance-Boosting Plugin](https://wordpress.org/plugins/sg-cachepress/)
 * [Support Threads](https://wordpress.org/support/plugin/sg-cachepress/)
 * [Active Topics](https://wordpress.org/support/plugin/sg-cachepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sg-cachepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sg-cachepress/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [variable product](https://wordpress.org/support/topic-tag/variable-product/)

 * 2 replies
 * 2 participants
 * Last reply from: [Simeon Boev](https://wordpress.org/support/users/k3llanved/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/javascript-error-on-woocommerce-variable-products/#post-16988446)
 * Status: resolved