我刚刚将现有的Meteor 1.2项目升级到Meteor 1.3,并希望开始使用新的“流星测试”功能。
但是,当我运行命令meteor test --driver-package practicalmeteor:mocha
时,我得到下面的输出。
有人能指出我如何缩小其原因的方向。我能找到的唯一相关问题是issue #6527 import-scanner - inconsistent lazy loading package files in Meteor 1.3-rc.3,但这标记为已解决。
非常感谢任何线索!
[[[[[ Tests ]]]]]
=> Started proxy.
=> Started MongoDB.
/home/me/.meteor/packages/coffeescript/.1.0.15.1v9es4z++os+web.browser+web.cordova/plugin.compileCoffeescript.os/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:116
throw error;
^
AssertionError: "undefined" === false
at ImportScanner._combineFiles (/tools/isobuild/import-scanner.js:154:12)
at /tools/isobuild/import-scanner.js:140:14
at Array.forEach (native)
at ImportScanner.addInputFiles (/tools/isobuild/import-scanner.js:119:11)
at /tools/isobuild/compiler-plugin.js:756:15
at Array.forEach (native)
at Function.computeJsOutputFilesMap (/tools/isobuild/compiler-plugin.js:726:19)
at ClientTarget._emitResources (/tools/isobuild/bundler.js:910:8)
at /tools/isobuild/bundler.js:677:12
at /tools/utils/buildmessage.js:359:18
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:352:34
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:350:23
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at Object.enterJob (/tools/utils/buildmessage.js:324:26)
at ClientTarget.make (/tools/isobuild/bundler.js:668:18)
at /tools/isobuild/bundler.js:2509:14
at /tools/isobuild/bundler.js:2599:20
at Array.forEach (native)
at Function._.each._.forEach (/home/me/.meteor/packages/meteor-tool/.1.3.0_3.61500n++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/underscore/underscore.js:79:11)
at /tools/isobuild/bundler.js:2598:7
at /tools/utils/buildmessage.js:271:13
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:264:29
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:262:18
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:253:23
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at Object.capture (/tools/utils/buildmessage.js:252:19)
at Object.exports.bundle (/tools/isobuild/bundler.js:2490:31)
at /tools/runners/run-app.js:591:36
at Function.run (/tools/tool-env/profile.js:489:12)
at bundleApp (/tools/runners/run-app.js:581:34)
at AppRunner._runOnce (/tools/runners/run-app.js:634:35)
at AppRunner._fiber (/tools/runners/run-app.js:887:28)
at /tools/runners/run-app.js:411:12
答案 0 :(得分:2)
通过强力消除(从项目中删除所有文件并逐个添加它们)的过程,我发现问题是由于使用的bootstrap-settings.json
文件的存在而触发的管理huttonr:bootstrap3
包
我直接向项目所有者提出了一个问题:https://github.com/huttonr/bootstrap3/issues/17
与此同时,作为一种解决方法,我已禁用huttonr:bootstrap3
包并删除了client/stylesheets/bootstrap-settings.json
文件