# Syntax Error on js minification file

**URL:** <https://community.hubspot.com/t/syntax-error-on-js-minification-file/30243>\
**Category:** CMS Development\
**Created:** [January 14, 2021, 10:57pm UTC](https://community.hubspot.com/t/syntax-error-on-js-minification-file/30243 "2021-01-14T22:57:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SaraRandolph](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sararandolph/32/98942_2.png) [@SaraRandolph](https://community.hubspot.com/u/SaraRandolph)\
**Post date:** [January 14, 2021, 10:57pm UTC](https://community.hubspot.com/t/syntax-error-on-js-minification-file/30243/1 "2021-01-14T22:57:43Z")

</div>

I have been successfully using the React CMS Boilerplate to upload a custom React Module in Hubspot. Today, I went to do some updates on the module and I’m getting this error

`Uncaught SyntaxError: Invalid or unexpected token`

in the minified main.js file. The error appears to be on the very last line of the minified file which is

`\#sourceURL=[https://f.hubspotusercontent00.net/hubfs/{myHubspotID}/raw\_assets/public/{myHubspotFolder}/main.js``](https://f.hubspotusercontent00.net/hubfs/%7BmyHubspotID%7D/raw_assets/public/%7BmyHubspotFolder%7D/main.js%60%60)

I have not experienced this error ever before so I’m wondering if something changed with how Hubspot builds the minified files? I did control tests and use the **exact same** code that worked previously and saw the same error today. Also I will note that the uploading process has no errors. I’m only seeing the error when I drag my module onto our page. That is where it crashes.

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [January 15, 2021, 3:44pm UTC](https://community.hubspot.com/t/syntax-error-on-js-minification-file/30243/2 "2021-01-15T15:44:44Z")

</div>

Hey @SaraRandolph

Are you still having this issue?

---

<div class="post-metadata">

**Author:** ![SaraRandolph](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sararandolph/32/98942_2.png) [@SaraRandolph](https://community.hubspot.com/u/SaraRandolph)\
**Post date:** [January 15, 2021, 4:06pm UTC](https://community.hubspot.com/t/syntax-error-on-js-minification-file/30243/3 "2021-01-15T16:06:51Z")

</div>

Hi @dennisedson I just tried it again and I am having the same issue.

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [January 15, 2021, 4:20pm UTC](https://community.hubspot.com/t/syntax-error-on-js-minification-file/30243/4 "2021-01-15T16:20:10Z")

</div>

@tjoyce ,

Have you seen this happen before with React in HubSpot?

---

<div class="post-metadata">

**Author:** ![SaraRandolph](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sararandolph/32/98942_2.png) [@SaraRandolph](https://community.hubspot.com/u/SaraRandolph)\
**Post date:** [January 19, 2021, 10:03pm UTC](https://community.hubspot.com/t/syntax-error-on-js-minification-file/30243/5 "2021-01-19T22:03:30Z")

</div>

I ended up chatting with a devloper on the Hubspot Slack and he was able to push up a fix for this. Thank you for all your support everyone!
