Meteor升级到1.3 - 找不到方法错误

时间:2016-03-31 19:46:56

标签: meteor

您好我升级到Meteor 1.3并且在我的包上遇到了很多与add_file方法有关的错误。

在我的所有包装中(例如uikit),它不再认识这种方法(我假设)。

有人碰到这个吗?

错误:

TypeError: Object [object Object] has no method 'add_file'
at package.js:12:7
at __bottom_mark__ (/tools/utils/parse-stack.js:59:14)
at PackageSource.initFromPackageDir (/tools/isobuild/package-source.js:1046:9)
at /tools/packaging/catalog/catalog-local.js:286:23
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 initSourceFromDir (/tools/packaging/catalog/catalog-local.js:273:20)
at /tools/packaging/catalog/catalog-local.js:346:9
at /tools/utils/buildmessage.js:565:21
at /Users/chazmee/.meteor/packages/meteor-tool/.1.3.0_3.1b03du5++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/isopackets/ddp/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:33:40

更新发布METEOR@1.3是不可能的:

While reading package from `/Users/chazmee/placelist/packages/uikit-2`:

package.js:12:7:对象[object object]没有方法' add_file'

1 个答案:

答案 0 :(得分:1)

Meteor软件包中的

api.add_file()应更新为api.addFiles()