I am working on a phabricator task and I need to use OOjs UI/Windows/Message Dialogs for a user warning.
But
TypeError: OO.ui.MessageDialog is not a constructor
error occurs at:
var messageDialog = new OO.ui.MessageDialog();
What might be the problem?