# Uncaught SyntaxError: Unexpected token in main.js

**URL:** <https://community.hubspot.com/t/uncaught-syntaxerror-unexpected-token-in-main-js/55888>\
**Category:** CMS Development\
**Tags:** javascript\
**Created:** [April 28, 2022, 4:12pm UTC](https://community.hubspot.com/t/uncaught-syntaxerror-unexpected-token-in-main-js/55888 "2022-04-28T16:12:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DorianM](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@DorianM](https://community.hubspot.com/u/DorianM)\
**Post date:** [April 28, 2022, 4:12pm UTC](https://community.hubspot.com/t/uncaught-syntaxerror-unexpected-token-in-main-js/55888/1 "2022-04-28T16:12:14Z")

</div>

Greetings,

Hopefully I’m posting this in the correct forum. I’m just jumping into Hubspot in my role and have noticed a syntax console error in all of the landing pages. I’m not adding any javascript or modifying any scripts. I’d appreciate if someone could take a look and advise.

I opened a ticket but it was closed with a note that this was related to some code I had in the header which has since been removed on a previous example.

Example : [https://info.vagaro.com/demo-landing-page](https://info.vagaro.com/demo-landing-page)

Error: Uncaught SyntaxError: Unexpected token ‘\<’ (at main.js:195:1)

HubSpot Ticket #9879356 - Javascript error

Thanks in advance,

Dorian

---

<div class="post-metadata">

**Author:** ![DorianM](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@DorianM](https://community.hubspot.com/u/DorianM)\
**Post date:** [April 28, 2022, 4:33pm UTC](https://community.hubspot.com/t/uncaught-syntaxerror-unexpected-token-in-main-js/55888/2 "2022-04-28T16:33:12Z")

</div>

I figured this out. Someone had inserted a \<script\> tag in the main.js file. Can mark this as solved.
