Meteor ReferenceError:_未定义

时间:2015-10-16 20:47:24

标签: meteor

我正在尝试使用jalik:ufs Meteor包来实现文件上传,但是在启动Meteor应用程序时看到此错误消息:

错误消息

W20151016-15:55:44.251(-4)? (STDERR) /Users/me/.meteor/packages/meteor-tool/.1.1.9.z0bbxn++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:245
W20151016-15:55:44.252(-4)? (STDERR) throw(ex);
W20151016-15:55:44.252(-4)? (STDERR) ^
W20151016-15:55:44.252(-4)? (STDERR) ReferenceError: _ is not defined
W20151016-15:55:44.252(-4)? (STDERR) at new UploadFS.store.Local (packages/jalik_ufs-local/packages/jalik_ufs-local.js:21:1)
W20151016-15:55:44.252(-4)? (STDERR) at is_admin (packages/mypack_biotools/collections.js:12:1)
W20151016-15:55:44.253(-4)? (STDERR) at /Users/me/Documents/meteor/test/.meteor/local/build/programs/server/packages/mypack_biotools.js:271:4
W20151016-15:55:44.253(-4)? (STDERR) at /Users/me/Documents/meteor/test/.meteor/local/build/programs/server/packages/mypack_biotools.js:749:3
W20151016-15:55:44.253(-4)? (STDERR) at /Users/me/Documents/meteor/test/.meteor/local/build/programs/server/boot.js:242:10
W20151016-15:55:44.253(-4)? (STDERR) at Array.forEach (native)
W20151016-15:55:44.253(-4)? (STDERR) at Function..each..forEach (/Users/me/.meteor/packages/meteor-tool/.1.1.9.z0bbxn++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20151016-15:55:44.254(-4)? (STDERR) at /Users/me/Documents/meteor/test/.meteor/local/build/programs/server/boot.js:137:5
=> Exited with code: 8

我的应用程序布局是这样的

main meteor app dir
--packages
----mypack:biotools
----mypack:manage-users

流星列表

  • blaze-html-templates 1.0.1
  • ecmascript 0.1.5
  • es5-shim 4.1.13
  • jquery 1.11.4
  • meteor-base 1.0.1
  • mobile-experience 1.0.1
  • mongo 1.1.2
  • mypack:biotools 1.0.0 +
  • mypack:manage-users 1.0.0 +
  • session 1.1.1
  • standard-minifiers 1.0.1
  • tracker 1.0.9

其他软件包版本

  • jalik:ufs@0.2.9
  • jalik:ufs-local@0.2.2
  • Meteor 1.2.0.2

mypack的Package.js:biotools和mypack:manage-users contains

api.use("underscore@1.0.4");
api.imply("underscore@1.0.4");

mypack的Package.js:biotools包含

api.use("jalik:ufs@0.2.9");
api.use("jalik:ufs-local@0.2.2");

感谢。

0 个答案:

没有答案