TypeError: Cannot read property 'orderable' of undefined

jike_4171272 Meteor 十分钟开发 CM... 2016年11月03日提问

  • 0 回答
  • 1.2k 浏览


Posts = new orion.colletion('posts', {singularName: 'post', // The name of one of these items  pluralName: 'posts', // The name of more than one of these items  title: 'posts', // The title in the index of the collection  link: {/**     * The text that you want to show in the sidebar.     * The default value is the name of the collection, so     * in this case it is not necessary.     */    title: 'Posts'  },  /**   * Tabular settings for this collection   */  tabular: {columns: [      { data: "title", title: "Title" },    /**     * If you want to show a custom orion attribute in     * the index table you must call this function     * orion.attributeColumn(attributeType, key, label, options)     */      orion.attributeColumn('file', 'image', 'Image'),      orion.attributeColumn('summernote', 'body', 'Content', { orderable: true }), // makes it searchable      orion.attributeColumn('createdBy', 'createdBy', 'Created By')    ]  }});


xuxinlai@xuxinlai-Aspire-TC-705:~/meteorP/myLedgerBg$ meteor

[[[[[ ~/meteorP/myLedgerBg ]]]]]              

=> Started proxy.                             

=> Started MongoDB.                           

W20161103-17:33:41.986(8)? (STDERR) /home/xuxinlai/.meteor/packages/meteor-tool/.

W20161103-17:33:42.019(8)? (STDERR) throw(ex);

W20161103-17:33:42.020(8)? (STDERR) ^

W20161103-17:33:42.020(8)? (STDERR) 

W20161103-17:33:42.020(8)? (STDERR) TypeError: Cannot read property 'orderable' of undefined

W20161103-17:33:42.020(8)? (STDERR)     at Object.orion.attributeColumn (packages/orionjs:attributes/attributes.js:43:7)

W20161103-17:33:42.021(8)? (STDERR)     at meteorInstall.lib.collections.posts.js (lib/collections/posts.js:25:13)

W20161103-17:33:42.021(8)? (STDERR)     at fileEvaluate (packages/modules-runtime.js:181:9)

W20161103-17:33:42.021(8)? (STDERR)     at require (packages/modules-runtime.js:106:16)

W20161103-17:33:42.021(8)? (STDERR)     at /home/xuxinlai/meteorP/myLedgerBg/.meteor/local/build/programs/server/app/app.js:38:1

W20161103-17:33:42.022(8)? (STDERR)     at /home/xuxinlai/meteorP/myLedgerBg/.meteor/local/build/programs/server/boot.js:295:34

W20161103-17:33:42.022(8)? (STDERR)     at Array.forEach (native)

W20161103-17:33:42.022(8)? (STDERR)     at Function._.each._.forEach (/home/xuxinlai/.meteor/packages/meteor-tool/.

W20161103-17:33:42.022(8)? (STDERR)     at /home/xuxinlai/meteorP/myLedgerBg/.meteor/local/build/programs/server/boot.js:128:5

W20161103-17:33:42.022(8)? (STDERR)     at /home/xuxinlai/meteorP/myLedgerBg/.meteor/local/build/programs/server/boot.js:344:5