0

我正在将 js-data 从 2.10.0 升级到 3.0.11。升级角度节点应用程序后似乎运行良好。但是,当我运行业力测试时,它们失败了。

Webpack:5.68.0 Angular:1.8.2 Karma:6.3.11 “js-data”:“3.0.11”,“js-data-angular”:“3.2.4”,“js-data-http”:“ 3.0.0",

但是当我尝试运行应用程序的业力测试时,它们失败并出现以下错误。

PhantomJS 2.1.1 (Windows 8) ERROR
  An error was thrown in afterAll
  TypeError: undefined is not an object (evaluating 'DSUtils.deepMixIn')
  dist/commons.js:139628
  Error: [$injector:nomod] Module 'app' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
  https://errors.angularjs.org/1.8.2/$injector/nomod?p0=app
  dist/commons.js:47094
angular
  .module('app', [
    'ui.router',
    'ngAnimate',
    'ngCookies',
    'ngResource',
    'ngSanitize',
    'ngTouch',
    'ngDialog',
    'config',
    'pascalprecht.translate',
    'js-data',
    'mm.foundation',
    'rzSlider',
    '720kb.tooltips',
    'angular-carousel',
    'angular-loading-bar',
    'ng.deviceDetector',
    'angulartics',
    'angulartics.google.tagmanager',
    'ngIdle',
    'pageslide-directive',
    'duScroll',
  ])

更新:

似乎它链接到https://github.com/js-data/js-data-angular/issues/371仍未解决。

4

0 回答 0