Page MenuHomePhabricator

Get 'module not found: toast' error in alpha mode on mobile
Closed, ResolvedPublic

Description

On my local instance (latest master) in alpha mode, I get the JS error 'module not found: toast' when I load any page. Can't seem to reproduce on beta labs though. Also can't reproduce with debug=true.

Event Timeline

kaldari raised the priority of this task from to Needs Triage.
kaldari updated the task description. (Show Details)
kaldari added a project: Web-Team-Backlog.
kaldari subscribed.
kaldari set Security to None.

Looks like this was caused by https://gerrit.wikimedia.org/r/#/c/207335/. Specifically resources/mobile.startup/panel.less (strangely).

I have no idea why resources/mobile.startup/panel.less seems to be triggering this error, but adding mobile.toast as a dependency to the mobile.editor.common module seems to fix it.

Change 209552 had a related patch set uploaded (by Kaldari):
Fix 'module not found: toast' error in alpha

https://gerrit.wikimedia.org/r/209552

Change 209552 merged by jenkins-bot:
Fix 'module not found: toast' error in alpha

https://gerrit.wikimedia.org/r/209552

This error is happening on enwiki, so you can't bring up the mobile menu . E.g. visit https://en.wikipedia.org/wiki/Chuck_Schuldiner?useformat=mobile&mobileaction=alpha and click the top bar You can't bring up the menu to choose Settings to uncheck experimental mode :(

The workaround is to change the browser URL to .../wiki/Special:MobileOptions and uncheck Experimental mode.

I think the fix will roll out to enwiki tomorrow.