Title: JavaScript error
Last modified: May 14, 2025

---

# JavaScript error

 *  Resolved [x1code](https://wordpress.org/support/users/secretja/)
 * (@secretja)
 * [1 year ago](https://wordpress.org/support/topic/javascript-error-242/)
 * Hi,
 * We have JavaScript error on website, checkout page.
 *     ```wp-block-code
       jquery-3.6.0.min.js:2 Uncaught TypeError: Cannot read properties of undefined (reading 'defaults')
       ```
   
 * And when we click on coupon code submit or delete product we got:
 *     ```wp-block-code
       cart.min.js?ver=9.8.5:1 Uncaught TypeError: t.addClass(...).block is not a function
       ```
   
 * We had similar problem one another website and you manage to fix it. Right now
   we can’t contact you on Klarna website because you have error and there, chat
   don’t work. When your plugin is disabled, all works fine. Thank you.

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

 *  [Klarna](https://wordpress.org/support/users/klarnaplugin/)
 * (@klarnaplugin)
 * [1 year ago](https://wordpress.org/support/topic/javascript-error-242/#post-18465428)
 * Hello,
 * Thank you for raising this! What plugin version are you using? Would you be able
   to share your url for troubleshooting? Have you tried the same fix you were recommended
   previously?
 * Kind regards,
 * Sara/Klarna team
 *  Thread Starter [x1code](https://wordpress.org/support/users/secretja/)
 * (@secretja)
 * [1 year ago](https://wordpress.org/support/topic/javascript-error-242/#post-18465511)
 * Hi Sara,
   Website isn’t live, it’s in development. You did something, this is 
   regarding parameters, not sure what is missing but you manage to fix that. Unfortunately
   I can’t contact you on website so I needed to contact you here.
 *     ```wp-block-code
           if ("undefined" == typeof wc_checkout_params)        return !1;    e.blockUI.defaults.overlayCSS.cursor = "default";
       ```
   
 *  Plugin Support [Andreas – Krokedil](https://wordpress.org/support/users/boozebrorsan/)
 * (@boozebrorsan)
 * [1 year ago](https://wordpress.org/support/topic/javascript-error-242/#post-18472383)
 * [@secretja](https://wordpress.org/support/users/secretja/)
 * I think the error comes from that you important an older version of jQuery 3.6.0
   and not using the jQuery version that is available in WordPress.
   I have seen 
   in the past that merchants has added an import script that loads jquery-3.6.0
   from a CDN service.Do you know if you are doing any imports? If so try and remove
   that and hopefully the JS error will be gone.
 *  Thread Starter [x1code](https://wordpress.org/support/users/secretja/)
 * (@secretja)
 * [1 year ago](https://wordpress.org/support/topic/javascript-error-242/#post-18473054)
 * Hi [@boozebrorsan](https://wordpress.org/support/users/boozebrorsan/) ,
   This 
   isn’t the case, fresh theme, Hello, is giving this error, I disabled all plugins
   and only problem is your plugin. We had exactly the same problem with another
   client and then we contacted Klarna support and they fixed this, or they told
   as what we need to do in dashboard, we don’t have access to this history. We 
   can’t contact Klarna support because support chat don’t work…
 *  Plugin Support [Andreas – Krokedil](https://wordpress.org/support/users/boozebrorsan/)
 * (@boozebrorsan)
 * [1 year ago](https://wordpress.org/support/topic/javascript-error-242/#post-18474461)
 * HI [@secretja](https://wordpress.org/support/users/secretja/)
 * I think we would need more info around this to be able to figure this out. Can
   you reach out to us (Krokedil) in our [support form](https://krokedil.com/support/)
   here. We might need info that is not suitable to leave on an open forum. When
   we have looked at it we can post (hopefully) a solution here in the forum. I 
   hope that sounds good?
 *  Thread Starter [x1code](https://wordpress.org/support/users/secretja/)
 * (@secretja)
 * [1 year ago](https://wordpress.org/support/topic/javascript-error-242/#post-18476779)
 * Hi Andreas,
 * Thank you for support!!!
 *  Plugin Support [Andreas – Krokedil](https://wordpress.org/support/users/boozebrorsan/)
 * (@boozebrorsan)
 * [1 year ago](https://wordpress.org/support/topic/javascript-error-242/#post-18476982)
 * The error was an important of an older version of jQuery 3.6.0 that was placed
   in a widget.

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

The topic ‘JavaScript error’ is closed to new replies.

 * ![](https://ps.w.org/klarna-checkout-for-woocommerce/assets/icon-256x256.png?
   rev=3332778)
 * [Kustom Checkout for WooCommerce](https://wordpress.org/plugins/klarna-checkout-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/klarna-checkout-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/klarna-checkout-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/klarna-checkout-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/klarna-checkout-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/klarna-checkout-for-woocommerce/reviews/)

 * 10 replies
 * 3 participants
 * Last reply from: [Andreas – Krokedil](https://wordpress.org/support/users/boozebrorsan/)
 * Last activity: [1 year ago](https://wordpress.org/support/topic/javascript-error-242/#post-18476982)
 * Status: resolved