# v3.3.0.beta3-dev の最新コミットが Discourse を壊しているようです

**URL:** https://meta.discourse.org/t/latest-commits-in-v3-3-0-beta3-dev-seems-to-break-discourse/311721
**Category:** Self-hosting
**Created:** [2024 年 6 月 12 日午前 9:49 UTC](https://meta.discourse.org/t/latest-commits-in-v3-3-0-beta3-dev-seems-to-break-discourse/311721 "2024-06-12T09:49:06Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![ja3](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@ja3](https://meta.discourse.org/u/ja3)
#### Post date: [2024 年 6 月 12 日午前 9:49 UTC](https://meta.discourse.org/t/latest-commits-in-v3-3-0-beta3-dev-seems-to-break-discourse/311721/1 "2024-06-12T09:49:06Z")

</div>

最新のコミット（6月10日以降のコミット。6月10日のビルドの1つは正常に動作したため）で再構築した後、セルフホストインスタンスが破損しています。私たちは **tests-passed** アップデートブランチを使用しています。

管理者（およびモデレーター）以外のユーザーにとっては、すべてのプラグインが同様の方法で破損しているように見えます。

 ![image](https://global.discourse-cdn.com/meta/original/4X/4/4/3/443a9bd622771830b67cf0988e2ff6ca7db63ce1.jpeg)

管理者ユーザー（モデレーターを含む）にとっては、同じ問題が発生し、さらに管理モジュール（リソートプラグインの下）でも同様のエラーが発生しており、早期に破損するため、アプリは完全に破損しています。

 ![image](https://global.discourse-cdn.com/meta/original/4X/4/8/4/4840e4720578b0d0d40efdf8223828581c47dc00.jpeg)

セーフモードは管理者ユーザーにとってはあまり役に立ちません。管理モジュールが無効にならないようで、プラグイン固有の問題でもないようです。

これは最新のコミットの問題だと仮定しています。しかし、そうでない場合、この問題を解決するために何か提案はありますか？

---

<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: [2024 年 6 月 12 日午前 10:04 UTC](https://meta.discourse.org/t/latest-commits-in-v3-3-0-beta3-dev-seems-to-break-discourse/311721/2 "2024-06-12T10:04:21Z")

</div>

こんにちは @ja3 さん、残念ながらこれはCloudflareのバグです。回避策の手順は以下のリンクで確認できます。

> [@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: ![ja3](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@ja3](https://meta.discourse.org/u/ja3)
#### Post date: [2024 年 6 月 12 日午前 10:16 UTC](https://meta.discourse.org/t/latest-commits-in-v3-3-0-beta3-dev-seems-to-break-discourse/311721/3 "2024-06-12T10:16:27Z")

</div>

ありがとうございます！それが原因でした 😄

以前にも同様の問題を解決するためにロケットローダーを無効にしたことがありました。これも同様の問題かもしれないと気づくべきでした。

いずれにせよ、Discourseのビルドの一部としてすでに最小化されているため、変更後に読み込み時間に目立った違いは見られません。

---

<div class="post-metadata">

### Author: ![oddjobz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/oddjobz/32/364342_2.png) [@oddjobz](https://meta.discourse.org/u/oddjobz)
#### Post date: [2024 年 6 月 17 日午後 3:25 UTC](https://meta.discourse.org/t/latest-commits-in-v3-3-0-beta3-dev-seems-to-break-discourse/311721/4 "2024-06-17T15:25:46Z")

</div>

こんにちは、私も全く同じ問題に遭遇しました。一部の人には常に、一部の人には時々影響が出ていました。キャッシュの問題かと思いましたが、ミニフィケーションを無効にしても問題はすぐに再発しました。現在、CloudFlareアカウントを「開発者モード」に設定し、プロキシをバイパスすることで、今のところ解決しています。以前にも開発者モードを試してキャッシュをクリアしましたが効果はありませんでした。今回は開発者モードとミニフィケーションの無効化の両方で機能するようです（私にはあまり意味が分かりませんが）。

これは非常に奇妙な問題で、次にアップグレードボタンをクリックする前に再考させるものです。もしこれに関する追加情報があれば、非常に助かります。

（追記：これは新しい問題で、ここ数ヶ月でアップデート以外に特に変更はありませんでした）

---

<div class="post-metadata">

### Author: ![ja3](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@ja3](https://meta.discourse.org/u/ja3)
#### Post date: [2024 年 6 月 17 日午後 3:53 UTC](https://meta.discourse.org/t/latest-commits-in-v3-3-0-beta3-dev-seems-to-break-discourse/311721/5 "2024-06-17T15:53:07Z")

</div>

@oddjobz 開発者モードを使用する必要はありませんでした。サイトのキャッシュをクリアすることで解決しました（誤ってミニファイされたファイルをクリアするため）。

確認すべき点は…ミニファイを有効/無効にする可能性のある設定ルールがあるかどうかです。または、特定の基準に基づいてキャッシュを行うキャッシュルールがあるかどうかです。

---

<div class="post-metadata">

### Author: ![oddjobz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/oddjobz/32/364342_2.png) [@oddjobz](https://meta.discourse.org/u/oddjobz)
#### Post date: [2024 年 6 月 19 日午前 9:18 UTC](https://meta.discourse.org/t/latest-commits-in-v3-3-0-beta3-dev-seems-to-break-discourse/311721/6 "2024-06-19T09:18:43Z")

</div>

Mmm、以前はミニフィケーションと開発者モードの両方で、私自身も他のユーザーも問題を解決できました。昨夜、問題が再発しました（他のユーザーに確認することはできませんでした）。CFコンソールに戻ってみると、ミニフィケーションは無効のままでした。しかし、開発者モードは「自動的に」オフになっていたようです（！）有効期限があるのでしょうか？

いずれにせよ、開発者モードとキャッシュクリアで、すぐに私にとって問題は再解決しました。

これは私にとって持続可能ではないため、CFの代替案を検討し始めました。何か推奨事項や可能な代替案はありますか？

---

<div class="post-metadata">

### Author: ![ja3](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@ja3](https://meta.discourse.org/u/ja3)
#### Post date: [2024 年 6 月 19 日午後 6:17 UTC](https://meta.discourse.org/t/latest-commits-in-v3-3-0-beta3-dev-seems-to-break-discourse/311721/7 "2024-06-19T18:17:35Z")

</div>

Fastlyが推奨CDNのようです。Discourseでの利用経験はありませんが、一般的に非常に優れています。

> [@Enable a CDN for your Discourse](https://meta.discourse.org/t/enable-a-cdn-for-your-discourse/14857):
>
> So you’d like to use a CDN to speed up worldwide access to common assets on your Discourse forum? You might want to go all-in and [Set up file and image uploads to S3](https://meta.discourse.org/t/setting-up-file-and-image-uploads-to-s3/7229) (see also [Configure an S3 compatible object storage provider for uploads](https://meta.discourse.org/t/configure-an-s3-compatible-object-storage-provider-for-uploads/148916)). If you want a CDN without the added complexity of S3 and having two CDNs, this is the guide for you. The CDN will reduce some load on your server by letting the CDN serve those assets so that the server doesn’t have to. It also can speed things up by deliver…

---

<div class="post-metadata">

### Author: ![oddjobz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/oddjobz/32/364342_2.png) [@oddjobz](https://meta.discourse.org/u/oddjobz)
#### Post date: [2024 年 6 月 19 日午後 9:33 UTC](https://meta.discourse.org/t/latest-commits-in-v3-3-0-beta3-dev-seems-to-break-discourse/311721/8 "2024-06-19T21:33:17Z")

</div>

承知いたしました。ありがとうございます。確認してみます 🙂

---

<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: [2024 年 7 月 1 日午後 1:15 UTC](https://meta.discourse.org/t/latest-commits-in-v3-3-0-beta3-dev-seems-to-break-discourse/311721/9 "2024-07-01T13:15:58Z")

</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…
