# Failed to upgrade - syntax error, unexpected \<\< js \<\< \<\<~JS

**URL:** <https://meta.discourse.org/t/failed-to-upgrade-syntax-error-unexpected-js-js/47630>\
**Category:** Bug\
**Created:** [2016 年7 月 22 日 06:50 UTC](https://meta.discourse.org/t/failed-to-upgrade-syntax-error-unexpected-js-js/47630 "2016-07-22T06:50:29Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

作者： ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)\
发布日期： [2016 年7 月 25 日 13:01 UTC](https://meta.discourse.org/t/failed-to-upgrade-syntax-error-unexpected-js-js/47630/12 "2016-07-25T13:01:33Z")

</div>

Ah I found it but the syntax we’re using is different and I’m not sure how to reproduce yet.

> <https://github.com/discourse/discourse/blob/main/lib/plugin/instance.rb#L249-L266>

---

_[View the full topic](https://meta.discourse.org/t/failed-to-upgrade-syntax-error-unexpected-js-js/47630)._
