Rebuilding caused a JavaScript error on load

AI-generated summary

After rebuilding their Discourse site on the latest beta commit, fefrei encountered a JavaScript error preventing the site from loading. Despite disabling customizations and reducing plugins to a minimal set—including docker_manager, spoiler-alert, data-explorer, and staff-notes—the error persisted. Community members codinghorror and zogstrip suggested testing without the spoiler-alert plugin, which gerhard noted had been recently updated and might be incompatible with the beta branch. fefrei confirmed that removing all plugins temporarily resolved the issue and later isolated the spoiler-alert plugin as the culprit fefrei. Although codinghorror noted spoiler-alert works on their sites, fefrei pointed out those are likely running the stable tests-passed branch. The issue was escalated to tgxworld for further investigation.

After rebuilding my site a few minutes ago, Discourse no longer loads.

I get this error in the JavaScript console:

I’m down to these plugins, and the error is still there:

      - git clone https://github.com/discourse/docker_manager.git
      - git clone https://github.com/discourse/discourse-spoiler-alert.git
      - git clone https://github.com/discourse/discourse-data-explorer.git
      - git clone https://github.com/discourse/discourse-staff-notes

Disabling all site customizations did not help, too.

I’m out of ideas, and my Discourse instance is down :sadpanda:


I should add that I am running on the (latest) beta commit.

Odd, I just rebuilt both discourse.codinghorror.com and talk.commonmark.org to latest, and they load fine with these plugins:

  • data-explorer
  • docker-manager

Plus spoiler and staff notes are used here on meta.

What’s the default language used there? Any unusual site settings?

Can you try without the spoiler-alert plugin?

Try removing the spoiler-alert plugin. It was updated today and I guess that change is not compatible with the beta branch.

That worked (I haven’t singled it out yet, but removing all official plugins worked).

I’m adding all other plugins back in to check whether this is really the cause… :hourglass:

This text will be blurred

Spoiler alert seems to be working ok here though.

But you are probably running tests-passed, right?

I see this is something for @tgxworld to look at.

I can confirm this is caused by the Spoiler plugin. Thanks a lot, @gerhard! :slight_smile: