Meteor Account.createUser TypeError: Cannot read property 'accessToken' of undefined

Meteor Account.createUser TypeError: Cannot read property 'accessToken' of undefined

我尝试创建用户注册。我已经安装

accounts-base                              1.2.2* A user account system
accounts-password                          1.1.4* Password support for accounts

在客户端:

var userNew = {
    password: textPassword,
    username: textUserName,
    profile: {
        address: textAddress
    }
};

Accounts.createUser(userNew, function (err) {
    if (err) {
        alert(err.message);
    } else {
        Router.go('/');
    }
});

但显示错误:

I20160423-17:47:07.299(7)? Exception while invoking method 'createUser' TypeError: Cannot read property 'accessToken' of undefined

我也在服务器端设置:

Accounts.config({
    forbidClientAccountCreation : false
});

我完成了更新并重新创建了 PROJECT。我不知道有什么问题。但重新创建项目解决了这个问题。 希望它能帮助别人