PhantomJS无法打开页面。角度1.6.5

时间:2017-08-15 15:43:17

标签: javascript angularjs phantomjs

我使用phantomjs 2.1.1和mocha进行功能测试,前端写入角度为1.6.5。

当我执行page.open()时,我收到此错误:

Error: [$injector:modulerr] Failed to instantiate module app due to:
[$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.
http://errors.angularjs.org/1.6.5/$injector/nomod?p0=app
https://localhost:8080/libs/angular/angular.js:2299:71
ensure@https://localhost:8080/libs/angular/angular.js:2218:45
module@https://localhost:8080/libs/angular/angular.js:2295:20
https://localhost:8080/libs/angular/angular.js:4933:35
forEach@https://localhost:8080/libs/angular/angular.js:410:24
loadModules@https://localhost:8080/libs/angular/angular.js:4917:12
createInjector@https://localhost:8080/libs/angular/angular.js:4839:30
doBootstrap@https://localhost:8080/libs/angular/angular.js:1949:34
bootstrap@https://localhost:8080/libs/angular/angular.js:1970:23
angularInit@https://localhost:8080/libs/angular/angular.js:1855:14
https://localhost:8080/libs/angular/angular.js:33826:16
trigger@https://localhost:8080/libs/angular/angular.js:3468:7

在Chrome浏览器中,页面正确打开。

0 个答案:

没有答案