Styleguide plugin prevents login

AI-generated summary

A user reported that the Discourse login page broke after installing an unrelated plugin and rebuilding, resulting in a blank page due to a JavaScript error in the styleguide-route-map file. The issue was traced to the discourse-styleguide plugin, which, when disabled, resolved the problem. The user confirmed they were using the latest Discourse master from a Digital Ocean one-click install, and noted the plugin had worked fine for a few days prior. Another user confirmed they couldn’t reproduce the issue, while the plugin developer acknowledged potential instability and advised ensuring both Discourse and the styleguide plugin are on the latest master. Bas Bas eviltrout

After installing an unrelated plugin and rebuilding, the Discourse login page completely broke (i.e. blank page).

This was caused by a javascript error in _plugin-third-pary-(...).js, see screenshot below.

The offending line was in styleguide-route-map; disabling the styleguide plugin fixed the error.

That’s all I have, wish I could be of more help :frowning:

Screenshot:

List of my current plugins:

        cmd:
          - mkdir -p plugins
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/vinkas0/discourse-navigation.git
          - git clone https://github.com/vinkas0/discourse-branding.git
          - git clone https://github.com/discourse/discourse-solved.git
          - git clone https://github.com/discourse/discourse-data-explorer.git
#          - git clone https://github.com/discourse/discourse-styleguide.git
          - git clone https://github.com/pmusaraj/discourse-sidebar-blocks.git
          - git clone https://github.com/discourse/discourse-staff-notes.git
#          - git clone https://github.com/scossar/discourse-blog-post.git
          - git clone https://github.com/binaryage/discourse-hipchat-plugin.git
#          - git clone https://github.com/mlamarque/algoliasearch-discourse.git

Are you on Discourse master ? I can’t reproduce at the moment.

Yeah, Digital Ocean oneclick of two weeks ago; no modifications except in app.yml.

Mind you, the styleguide plugin worked fine for a few days. This is a bit of a heisenbug I’m afraid.

I’m fine with / completely understand this not being fixed, I just wanted to report so you guys know that “something” is up.

I’ve been actively developing that plugin and I suspect you checked it out at a bad time.
Make sure you are using the latest master of discourse and of the discourse-styleguide and it should work.

5 إعجابات