• Closed by: Fred
  • Closed on: 03.01.20, 15:26
  • Reason: Closed
  • Comment: Glad to help!

Ticket #16440 - AMP lot of js bug

Hi guys

I have a lot of js bug in amp version
error.js:202 Cannot read property ‘addEventListener’ of undefined

bottom-69ec5a15.js:260 Uncaught (in promise) TypeError: Cannot read property ‘addEventListener’ of undefined

[<amp-state> cartList] Failed to parse state. Is it valid JSON? SyntaxError: Unexpected token M in JSON at position 219

Do you have an idea ?

Comments

Fred 12 Dec 2019, 17:23

AMP has been developed respecting all Google requirements. Your website seems just not configured properly. Please check out out documentation first http://alysum5.promokit.eu/promokit/documentation/amp/troubleshooting.html

Thomas BELLANGER 12 Dec 2019, 17:36

I just use your theme… so..
i allready watch this topic and follow the right directives but still have a bug

Fred 12 Dec 2019, 17:37

Please give me a link where I can see the issue

Thomas BELLANGER 12 Dec 2019, 18:14

https://maitretisanier.com/mobile for the amp version
https://maitretisanier.com/ for the desktop

Thx for your help

Fred 12 Dec 2019, 18:15

I don’t see any js error in AMP version

Thomas BELLANGER 13 Dec 2019, 09:56

Sorry is it in the checkout page

Fred 14 Dec 2019, 18:55

Checkout is not valid AMP, because it could contain a lot of different payment and delivery modules with their own scripts.