【发布时间】:2018-05-13 11:42:24
【问题描述】:
我想对我的软件做一些测试,所以我在网上找了一些教程,找到了practicemeteor:mocha包。但是在安装包并打开本地之后(无需编写任何测试)。我收到错误提示:
socket-stream-client.js:100 Uncaught TypeError: _this._launchConnection is not a function
at new ClientStream (socket-stream-client.js:100)
at new Connection (ddp-client.js:435)
at Object.DDP.connect (ddp-client.js:2340)
at client_convenience.js (ddp-client.js:125)
at fileEvaluate (modules-runtime.js:353)
at require (modules-runtime.js:248)
at client.js (ddp-client.js:54)
at fileEvaluate (modules-runtime.js:353)
at require (modules-runtime.js:248)
at ddp-client.js:2381
ddp.js:14 Uncaught TypeError: Cannot read property 'DDP' of undefined
at ddp.js:14
at ddp.js:23
allow-deny.js:22 Uncaught TypeError: Cannot read property 'DDP' of undefined
at allow-deny.js:22
at allow-deny.js:566
mongo.js:17 Uncaught TypeError: Cannot read property 'AllowDeny' of undefined
at mongo.js:17
at mongo.js:871
accounts-base.js:23 Uncaught TypeError: Cannot read property 'DDP' of undefined
at accounts-base.js:23
at accounts-base.js:1462
service-configuration.js:17 Uncaught TypeError: Cannot read property 'Accounts' of undefined
at service-configuration.js:17
at service-configuration.js:73
accounts-password.js:17 Uncaught TypeError: Cannot read property 'Accounts' of undefined
at accounts-password.js:17
at accounts-password.js:329
accounts-ui-unstyled.js:19 Uncaught TypeError: Cannot read property 'ServiceConfiguration' of undefined
at accounts-ui-unstyled.js:19
at accounts-ui-unstyled.js:2113
meteortoys_toykit.js:26 Uncaught TypeError: Cannot read property 'Mongo' of undefined
at meteortoys_toykit.js:26
at meteortoys_toykit.js:410
msavin_mongol.js:20 Uncaught TypeError: Cannot read property 'Mongo' of undefined
at msavin_mongol.js:20
at msavin_mongol.js:1058
autoupdate.js:20 Uncaught TypeError: Cannot read property 'DDP' of undefined
at autoupdate.js:20
at autoupdate.js:231
practicalmeteor_mocha.js:18 Uncaught TypeError: Cannot read property 'DDP' of undefined
at practicalmeteor_mocha.js:18
at practicalmeteor_mocha.js:13186
livedata.js:14 Uncaught TypeError: Cannot read property 'DDP' of undefined
at livedata.js:14
at livedata.js:27
global-imports.js:3 Uncaught TypeError: Cannot read property 'Mongo' of undefined
at global-imports.js:3
meteor.js:1081 Uncaught Error: Can't find test driver package: practicalmeteor:mocha
at meteor.js:1081
at maybeReady (meteor.js:871)
at HTMLDocument.loadingCompleted (meteor.js:883)
我正在使用流星 1.6.1.1
【问题讨论】:
-
你用的是哪个mocha驱动包?
-
我用的是最新版的practicemeteor:mocha!