# Unexpected identifier \`#...\` SyntaxError

**URL:** https://meta.discourse.org/t/unexpected-identifier-syntaxerror/307411
**Category:** Support
**Created:** [May 9, 2024, 2:20pm UTC](https://meta.discourse.org/t/unexpected-identifier-syntaxerror/307411 "2024-05-09T14:20:32Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Krystian\_Wojciechowski](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/krystian_wojciechowski/32/384874_2.png) [@Krystian\_Wojciechowski](https://meta.discourse.org/u/Krystian_Wojciechowski)
#### Post date: [May 9, 2024, 2:20pm UTC](https://meta.discourse.org/t/unexpected-identifier-syntaxerror/307411/1 "2024-05-09T14:20:32Z")

</div>

Im testing a Discourse as a community solution.  
After setting up simple theme - just colors + fonts  
and installed plugin [GitHub - discourse/discourse-rss-polling · GitHub](https://github.com/discourse/discourse-rss-polling)  
created some categories and topics - this error blew up.

vendor.ff29780b9fed784cce2d843dcb93a803-608f4f77d8437d715d8d39c739c0c8bbe0fe51c9305e55f1ec7d0bee19f5571f.js:9 Uncaught (in promise) Error: There is no route named admin

 ![Screenshot at May 09 16-17-18](https://global.discourse-cdn.com/meta/original/4X/5/e/1/5e13b264e33be7ef9fefd5bd98d70aa609af5db3.jpeg)

---

<div class="post-metadata">

### Author: ![Krystian\_Wojciechowski](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/krystian_wojciechowski/32/384874_2.png) [@Krystian\_Wojciechowski](https://meta.discourse.org/u/Krystian_Wojciechowski)
#### Post date: [May 9, 2024, 2:21pm UTC](https://meta.discourse.org/t/unexpected-identifier-syntaxerror/307411/2 "2024-05-09T14:21:41Z")

</div>

after entering safe-mode everything looks same and same errors pop up.  
Tried different browsers. Also tried ./launcher rebuild app, also removed plugins app.yml and dictionary.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [May 9, 2024, 2:30pm UTC](https://meta.discourse.org/t/unexpected-identifier-syntaxerror/307411/3 "2024-05-09T14:30:06Z")

</div>

Which browser/version have you tried?

Would you mind posting a link to your site?

---

<div class="post-metadata">

### Author: ![Krystian\_Wojciechowski](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/krystian_wojciechowski/32/384874_2.png) [@Krystian\_Wojciechowski](https://meta.discourse.org/u/Krystian_Wojciechowski)
#### Post date: [May 9, 2024, 2:31pm UTC](https://meta.discourse.org/t/unexpected-identifier-syntaxerror/307411/4 "2024-05-09T14:31:40Z")

</div>

[https://community.samana-group.net](https://community.samana-group.net)

I tried both Brave and Safari

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [May 9, 2024, 2:33pm UTC](https://meta.discourse.org/t/unexpected-identifier-syntaxerror/307411/5 "2024-05-09T14:33:28Z")

</div>

Can you check the Brave and Safari versions? If you’re not sure, take a look at [https://www.whatsmybrowser.org/](https://www.whatsmybrowser.org/)

---

<div class="post-metadata">

### Author: ![Krystian\_Wojciechowski](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/krystian_wojciechowski/32/384874_2.png) [@Krystian\_Wojciechowski](https://meta.discourse.org/u/Krystian_Wojciechowski)
#### Post date: [May 9, 2024, 2:34pm UTC](https://meta.discourse.org/t/unexpected-identifier-syntaxerror/307411/6 "2024-05-09T14:34:17Z")

</div>

## Chrome 123.

## Safari 17.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [May 9, 2024, 2:37pm UTC](https://meta.discourse.org/t/unexpected-identifier-syntaxerror/307411/7 "2024-05-09T14:37:32Z")

</div>

I suspect that Cloudflare’s “optimization” tools are breaking Discourse’s Javascript code. Please can you check that “Rocket Loader” is turned off in your cloudflare config.

More info on Cloudflare best practices [here](https://meta.discourse.org/t/using-discourse-with-cloudflare-best-practices/293405#best-practices-3).

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [May 9, 2024, 2:41pm UTC](https://meta.discourse.org/t/unexpected-identifier-syntaxerror/307411/8 "2024-05-09T14:41:48Z")

</div>

Also please make sure you have “Auto Minify” disabled. It looks like Cloudflare have deprecated this feature because of incompatibility with recent javascript features:

 ![SCR-20240509-nwaw](https://global.discourse-cdn.com/meta/original/4X/f/6/9/f69829e613c83d3144088f95636f81cd74b86b93.png)

Looks like you will need to purge your cache after doing that.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [June 10, 2024, 1:25pm UTC](https://meta.discourse.org/t/unexpected-identifier-syntaxerror/307411/9 "2024-06-10T13:25:19Z")

</div>

> [@Resolving "SyntaxError: Unexpected identifier #..." caused by Cloudflare Auto Minify](https://meta.discourse.org/t/resolving-syntaxerror-unexpected-identifier-caused-by-cloudflare-auto-minify/311390):
>
> Cloudflare’s [‘Auto Minify’](https://developers.cloudflare.com/speed/optimization/content/auto-minify/) feature will break recent versions of Discourse. In the browser console, you will see an error like: Uncaught SyntaxError: Unexpected identifier '#...' Cloudflare are aware of the issue, and have added this message to their dashboard: Note: Please note that this feature may not be fully compatible with certain newer CSS and JS language features, which could potentially affect the functionality of the site Unfortunately, despite this critical issue, the feature wi…

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [June 10, 2024, 1:25pm UTC](https://meta.discourse.org/t/unexpected-identifier-syntaxerror/307411/10 "2024-06-10T13:25:22Z")

</div>


