Uncaught SyntaxError: Unexpected token <

Created At: 2022-03-05 18:31:58 Updated At: 2022-03-05 18:38:15

Uncaught SyntaxError: Unexpected token <

There are many resasons why the above error happens. One of them I have encountered personally which is wrong path for your javascript files.

In general external recources are kept in the public/js folder. 

If you are html file is refering the wrong path, then it can not find the js resources. In that case you see the error

Uncaught SyntaxError: Unexpected token <

So check the path for your js resources and error should be gone

1. Check the path of your javascript file

2. Write the correct path and reload your application

 

Comment

Add Reviews