commerce
commerce copied to clipboard
SyntaxError: Unexpected token '?' from < iOS 14
I was doing some testing on a iOS 13 device (Safari) and it threw some errors. The one who causes this was this line:
SyntaxError: Unexpected token '?'
It appears in the usePrice function and throughout other functions. Also, it does appear when testing the demo site on that same device. Does anyone know how to fix this?
me too....
Safari Version 12.1.2 (14607.3.9) https://nextjs.org/docs/basic-features/supported-browsers-features
![image](https://user-images.githubusercontent.com/23427655/183279808-0e21f44c-29da-4d69-a2e3-03f04928eeec.png)
need to change the target to a lower es version in the tsconfig file and set the server option to false
Hey there! Thank you for your contribution. We have decided to take Next.js Commerce in a new direction and will be closing out current PRs and issues due to this change. Please see this PR for more details: https://github.com/vercel/commerce/pull/966