cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 Javascript Error

Magento 2 Javascript Error

Hi guys, 

 

So I was testing my shopping cart:

Click “Update Shopping Cart” on cart page OR update quantities on PDP page OR remove items from cart.

Any of the above would result in getting JS error. 

 

JavaScript ErrorJavaScript Error

The error:

paypalCheckout button render error Error: "Document is ready and element #paypal-braintree-paypal-mini-cart--1040293867755585783 does not exist"
    B dom.js:109
    e promise.js:41
    B dom.js:99
    elementReady index.js:639
    elementReady index.js:136
    try promise.js:409
    render index.js:134
    try promise.js:409
    tryInit index.js:1300
    render index.js:124
    render index.js:502
    try promise.js:409
    render index.js:501
    render component.jsx:1061
    callOriginal util.js:265
    <anonymous> hacks.js:146
    o util.js:261
    initCallback static.min.js line 11 > Function:12
    exports paypal-checkout.min.js:1
static.min.js line 11 > Function:12:410
    onError static.min.js line 11 > Function:12
    ge promise.js:40
    try promise.js:409
    ge promise.js:39
    n props.js:88
    P fn.js:35
    error index.js:1334
    dispatch promise.js:170
    then promise.js:246
    error index.js:1331
    o index.js:119
    dispatch promise.js:184
    reject promise.js:127
    tryInit index.js:1301
    dispatch promise.js:184
    then promise.js:246
    catch promise.js:252
    tryInit index.js:1300
    render index.js:124
    render index.js:502
    try promise.js:409
    render index.js:501
    render component.jsx:1061
    callOriginal util.js:265
    <anonymous> hacks.js:146
    o util.js:261
    initCallback static.min.js line 11 > Function:12
    exports paypal-checkout.min.js:1

I tested this in Firefox on MAC. If anyone has a solution to this error please help me out to fix this issue.

1 REPLY 1

Re: Magento 2 Javascript Error

Hi,

I'm facing the same problem..

do you fix it?

 

thanks