Uncaught (in promise) ReferenceError: ValidationBase is not defined

Uncaught (in promise) ReferenceError: ValidationBase is not defined

我正在尝试 运行 这个例子:https://www.oracle.com/webfolder/technetwork/jet/jetCookbook.html?component=listView&demo=filterSortListView

我下载了 JET-Template-Web-NavBar 并在 dashboard.html 和 js 中替换了示例中给出的代码,但它抛出错误

dashboard.js:73 Uncaught (in promise) ReferenceError: ValidationBase is not defined
    at new DashboardViewModel (dashboard.js:73)

js文件

define(['ojs/ojcore', 'knockout','appController','ojs/ojmodel',   'ojs/ojvalidation-base', 'ojs/ojknockout', 
    'ojs/ojlistview', 'ojs/ojgauge', 'ojs/ojbutton', 'ojs/ojcheckboxset', 'ojs/ojselectcombobox', 'ojs/ojpagingcontrol'],
 function( oj,ko,  data ,  app ,  Model) {


    function DashboardViewModel() {
      var self = this;

rest 是完整的示例复制粘贴,没有对应用程序附带的默认 main.js 进行任何更改。所有模块似乎都可用(在调试器上都是 200 正常)

您需要将模块作为正确的参数传递给您的函数。

define(['ojs/ojcore', 'knockout','appController','ojs/ojmodel',   'ojs/ojvalidation-base', 'ojs/ojknockout', 
    'ojs/ojlistview', 'ojs/ojgauge', 'ojs/ojbutton', 'ojs/ojcheckboxset', 'ojs/ojselectcombobox', 'ojs/ojpagingcontrol'],
 function(oj, ko, app, Model, ValidationBase) {


    function DashboardViewModel() {
      var self = this;