Paypal Plugin Crashing

I have added the official woocommerce paypal plugin. all the buttons are showing properly but when i click the button it crashes and i get an error in the console. I have the same configuration in a different site only the builder is elementor. How to Fix this

I am facing this problem also, It works fine without bricks builder.