Page MenuHomePhabricator

Adding Math Plugin Causes VisualEditor to Crash: "TypeError: Right-hand side of 'instanceof' is not an object"
Open, Needs TriagePublic

Description

When applying the Math plugin to my wiki (already set up with visualeditor), further edits with the visualeditor result in the editor crashing. Removing the Math plugin fixes this issue. This also seems to be a javascript error.

A current workaround I have found is turning wgResourceLoaderDebug to true. When debugging is on, I'm able to get these two errors:

Uncaught TypeError: Right-hand side of 'instanceof' is not an object
oo.inheritClass @ oojs.jquery.js?d40c1:95
(anonymous function) @ ve.ui.MWMathDialog.js?ed119:26
oojs.jquery.js?d40c1:95 Uncaught TypeError: Right-hand side of 'instanceof' is not an object
oo.inheritClass @ oojs.jquery.js?d40c1:95
(anonymous function) @ ve.ui.MWMathDialogTool.js?c4495:22

This is my first time reporting any javascript errors, so let me know if I can provide any more information than that.

Versions:
Media Wiki:1.27.1
Visual Editor: 0.1.0 (a733545)
Math: 3.0.0 (efdd7c2)
oojs/oojs-ui: 0.17.1
parsoid: Packaged with ubuntu 16.04

I haven't tried upgrading oojs, but that comes packaged with mediawiki, so I would rather leave it alone.

Let me know if I can provide any more information, and thanks for looking at this!

Event Timeline

Aklapper renamed this task from Adding Math Plugin Causes VisualEditor to Crash to Adding Math Plugin Causes VisualEditor to Crash: "TypeError: Right-hand side of 'instanceof' is not an object".Feb 16 2020, 7:29 PM
Aklapper added a project: VisualEditor.