Meteor Package.describe () method does not exist after update 0.9

I get the following error after upgrading to Meteor 0.9.0.1 and updating my package.js file according to the package documentation

W20140903-17:30:20.305(-4)? (STDERR) /Users/admin/.meteor/packages/meteor-tool/.1.0.26.p03e91++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/future.js:173 W20140903-17:30:20.305(-4)? (STDERR) throw(ex); W20140903-17:30:20.306(-4)? (STDERR) ^ W20140903-17:30:20.308(-4)? (STDERR) TypeError: Object #<Object> has no method 'describe' W20140903-17:30:20.308(-4)? (STDERR) at app/zeroasterisk:throttle/package.js:1:44 W20140903-17:30:20.308(-4)? (STDERR) at app/zeroasterisk:throttle/package.js:22:3 W20140903-17:30:20.309(-4)? (STDERR) at /Development/Meteor/Meteor-Throttle-Example/.meteor/local/build/programs/server/boot.js:161:10 W20140903-17:30:20.309(-4)? (STDERR) at Array.forEach (native) W20140903-17:30:20.309(-4)? (STDERR) at Function._.each._.forEach (/Users/admin/.meteor/packages/meteor-tool/.1.0.26.p03e91++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/lib/node_modules/underscore/underscore.js:79:11) W20140903-17:30:20.309(-4)? (STDERR) at /Development/Meteor/Meteor-Throttle-Example/.meteor/local/build/programs/server/boot.js:82:5 => Exited with code: 8 $ meteor --version Meteor 0.9.0.1 $ meteor list standard-app-packages 1.0.0 Include a standard set of Meteor packages in y... autopublish 1.0.0 Publish the entire database to all clients insecure 1.0.0 Allow all database writes by default bootstrap-3 0.0.0 Provides bootstrap 3. showdown 1.0.0 Markdown-to-HTML processor underscore 1.0.0 Collection of small helpers: _.map, _.each, ... package-version-parser 1.0.6 Parses Meteor Smart Package version string zeroasterisk:throttle 0.2.1 A secure means of limiting interactions (email... 

I can’t understand what I’m doing wrong ... right?

+5
source share
4 answers

I had the same problem. The problem here is that you have the package in the root folder of the app/zeroasterisk:throttle application, when it should be app/packages/zeroasterisk:throttle . Put the package in the packages folder and it will be resolved.

+7
source

You can try reading the official package migration guide. This guide explains how to fix broken packages. Url

https://hackpad.com/Migrating-Packages-zN0we9sIjkH

0
source

Thanks for the suggestions - as it turned out, it was some other Package. I created a new Meteor application and added my package, and it worked perfectly: /

Therefore, I don’t know the exact reason, maybe I’m rewriting the Package object for something, but in any case it was easy enough to get around.

0
source

I had a problem that was stopping me from deploying my application. The reason was because I had a package directory defined in my client folder (application / client / packages). However, this should be in the main project directory (application / packages). After I deleted the package folder in the client folder, the application was able to deploy without problems.

I had a call to the Package.describe () method, which was causing an error that helped me track this issue.

0
source

Source: https://habr.com/ru/post/1201774/


All Articles