SyntaxError: Unexpected token '.' after trying to load an angular website

Viewed 35

I receive this error in safari on my iPhone after trying to access an angular website:

SyntaxError: Unexpected token '.'

The website is then just stuck on a white screen without providing more information.

How can i solve this problem?

1 Answers

I remembered, that i once had the same problem trying to open an ionic app. I fixed the problem by lowering the target version in my tsconfig.json file:

enter image description here

In my case i had to go from es2020 to es2018 to make it work, since i have installed an older ios version (13.3.1) on my test device.

I hope it helps some of you!

Related