Regression likely caused by T205128 and breaking RelatedArticles for some users.
Exception in module-execute in module mediawiki.template.muhogan:
load.php?debug=false&lang=en&modules=startup&only=scripts&skin=minerva&target=mobile:2 Error: Unknown compiler hogan
The_Church_of_Jesus_Christ_of_Latter-day_Saints_in_Alabama:153
I'm seeing this error when I click Special:Random (and land on a lesser used page)
On refreshing, I do not see the error.
I can only reproduce this error on iOS Safari 12.0 on old pages, which makes me think this is a cache problem.
The error triggers statsv, so I think could be contributing to this nasty spike:
{F27020716}
```
mw.loader.getState('mediawiki.template.hogan')
"ready"
mw.loader.getState('mediawiki.template.muhogan')
"error"
```
{F27020728}
== Developer notes
Looking at the code for RelatedArticles it is very brittle... it doesn't take into account load order.
Probably our recent changes in MobileFrontend have changed the default order, meaning this code is expected mediawiki.template.hogan to have loaded before it.
= Replication instructions
While not exactly the same, you can simulate this using the following:
```
"mediawiki.template.hogan": {
"targets": [
"mobile",
"desktop"
],
"dependencies": [
"ext.relatedArticles.cards",
"mediawiki.template"
],
```
We should revisit our approach to loading templates via mustache or hogan depending on what's available.
The solution should not load Mustache into the mobile site alongside Hogan