• Happens on the checkout page. Is this error a conflict with another plugin? Seems to happen only when I have the Afterpay plugin activated.

    Uncaught (in promise) TypeError: Cannot read properties of null (reading ‘style’)
    at n.je (chunk-placement.js:1:21113)
    at n. (chunk-placement.js:1:33950)
    at h (square-marketplace.js:2:205191)
    at Generator. (square-marketplace.js:2:206537)
    at Generator.next (square-marketplace.js:2:205620)
    at r (square-marketplace.js:2:304119)
    at c (square-marketplace.js:2:304322)

    Below is what I see in chunk-placement.js, (bolded is the part where the red underline is shown)

    this.showPayMonthly)
    this.shadowRoot.querySelector(“.placement-payment-schedule-container”).style.setProperty(“display”, “none”),
    this.shadowRoot.querySelector(“.afterpay-paragraph”).style.setProperty(“display”, “block”);
    else
    this.shadowRoot.querySelector(“.placement-payment-schedule-container”).style.removeProperty(“display”),
    this.shadowRoot.querySelector(“.afterpay-paragraph”).style.setProperty(“display”, “none”);
    break;

    For context, the website uses CheckoutWC and I cannot see an element with the class of ‘afterpay-paragraph’. However, I have also tried deactivating CheckoutWC and confirmed that this element doesn’t exist on the default WooCommerce checkout template as well.

    • This topic was modified 4 months, 3 weeks ago by jayahn4.

    The page I need help with: [log in to see the link]

  • You must be logged in to reply to this topic.