Meteor:使用alanning的问题:安装了补丁的角色(将项目从v0.9.3.1升级到v1.2.0.1)

时间:2015-09-28 15:30:21

标签: meteor

我刚刚为this patch软件包安装了alanning:roles,我现在收到了这些错误:

WARNING: Roles template helpers not registered. Handlebars or UI package not found

lookup.js:186 Uncaught Error: No such function: isInRole

这是产生第一个错误的代码:

if (Package.ui) {
  _.each(Roles._uiHelpers, function (func, name) {
    Package.ui.UI.registerHelper(name, func) 
  })
} else if (Package.handlebars) {
  _.each(Roles._uiHelpers, function (func, name) {
    Package.handlebars.Handlebars.registerHelper(name, func)
  })
} else {
  console.log && console.log('WARNING: Roles template helpers not registered. Handlebars or UI package not found')
}

任何人都知道我需要做些什么才能解决这些问题?看起来像这样:link

这是我的meteor list输出:

accounts-password                  1.1.3  Password support for accounts
accounts-ui                        1.1.6  Simple templates to add login widgets to an app
alanning:roles                     1.2.13+ Authorization package for Meteor
aldeed:autoform                    5.5.1  Easily create forms with automatic insert and update, and automatic reactive...
aldeed:collection2                 2.5.0  Automatic validation of insert and update operations on the client and server.
aldeed:simple-schema               1.3.3  A simple schema validation object with reactivity. Used by collection2 and a...
blaze-html-templates               1.0.1  Compile HTML templates into reactive UI with Meteor Blaze
cfs:filesystem                     0.1.2  Filesystem storage adapter for CollectionFS
cfs:standard-packages              0.5.9  Filesystem for Meteor, collectionFS
ecmascript                         0.1.4  Compiler plugin that supports ES2015+ in all .js files
ejson                              1.0.7  Extended and Extensible JSON library
es5-shim                           4.1.13  Shims and polyfills to improve ECMAScript 5 support
insecure                           1.0.4  (For prototyping only) Allow all database writes from the client
iron:router                        1.0.9  Routing specifically designed for Meteor
jquery                             1.11.4  Manipulate the DOM using CSS selectors
matb33:collection-hooks            0.8.0  Extends Mongo.Collection with before/after hooks for insert/update/remove/fi...
meteor-base                        1.0.1  Packages that every Meteor app needs
meteorhacks:npm                    1.5.0  Use npm modules with your Meteor App
mobile-experience                  1.0.1  Packages for a great mobile user experience
mongo                              1.1.1  Adaptor for using MongoDB and Minimongo over DDP
mrt:accounts-admin-ui-bootstrap-3  0.2.7  A roles based account management system using bootstrap 3
mrt:jquery-jcrop                   0.0.3  jQuery Jcrop repackaged for Meteor
mrt:loading                        0.0.1  Loading overlay + spinner
npm-container                      1.2.0+ Contains all your npm dependencies
random                             1.0.4  Random number generator and utilities
session                            1.1.1  Session variable
spacebars                          1.0.7  Handlebars-like template language for Meteor
standard-minifiers                 1.0.0  Standard minifiers used with Meteor apps by default.
tracker                            1.0.8  Dependency tracker to allow reactive callbacks
twbs:bootstrap                     3.3.5  The most popular front-end framework for developing responsive, mobile first...

1 个答案:

答案 0 :(得分:2)

需要将ADataoperator QString()一起列为弱依赖项。 Meteor 1.2从默认安装的核心中删除了很多软件包。

补丁已更新以反映这些变化。

operator[]

而不是

ADocument