SyntaxError: Unexpected token const

I am getting such an error, what should I do?

image

image

The line you’ve highlighted imports another file called vm.js, and it’s that file which contains the error.

Take a look in vm.js at line 79-80, there is probably a syntax error where line 79 didn’t terminate in a normal way, so the const at the start of line 80 is unexpected (that’s my guess)

3 Likes

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.