必需的模块缺少方法

Required module missing methods

这是 UI5 (1.60.2) 的错误还是我这里做错了什么?

onSelectPreferredTreatment: function(event) {
  // ...
  const oDialog = new Dialog({/*...*/});
  oDialog.open();
},

VM77446:1 Uncaught TypeError: oDialog.open is not a function
at eval (eval at onSelectPreferredTreatment (Preview.controller.js?eval:NaN), :1:9)
at f.onSelectPreferredTreatment (Preview.controller.js?eval:552)

检查控制器中的依赖项列表。所需模块的顺序应准确反映回调函数可用参数的顺序。

sap.ui.define([
  "sap/ui/core/mvc/Controller", // 1st
  "sap/m/Dialog", // 2nd
  // ...
], function(Controller/*1st*/, Dialog/*2nd, ...*/) {
  // ...
});

您可能还需要某些模块两次,类似于