Meteor错误:TypeError: Meteor.userId is not a function

问题描述:

浏览器console提示错误TypeError: Meteor.userId is not a function。

原因分析:

通过查看Meteor API文档,可知该函数由包accounts-base 定义,因此需在项目中添加该包。

解决方案:

meteor add accounts-base

posted @ 2015-11-01 20:35  sulerzh  阅读(468)  评论(0编辑  收藏  举报