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 created this task.May 7 2015, 5:45 PM
kaldari raised the priority of this task from to Needs Triage.
kaldari updated the task description. (Show Details)
kaldari added a project: Readers-Web-Backlog.
kaldari added a subscriber: kaldari.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMay 7 2015, 5:45 PM
kaldari updated the task description. (Show Details)May 7 2015, 5:48 PM
kaldari set Security to None.
kaldari added a comment.EditedMay 7 2015, 5:58 PM

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

kaldari closed this task as Resolved.May 7 2015, 9:47 PM
kaldari claimed this task.

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.