SyntaxError: Unexpected reserved word ‘await’
guys. I'm using Google Firestore to save some data in a database. If, for example, I use the code provided by Google to replace or create a new document in the database, I get the error: Uncaught SyntaxError: Unexpected reserved word ‘await’ I know the problem is that await can only be used with asynchronous functions, but these are not functions created by me. They are imported from the Firestore libraries and I'm using the code provided by Google. What is wrong here? Thank you.