Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Meteor Account.createUser TypeError:无法读取属性';accessToken';未定义的_Meteor_Access Token_Createuser - Fatal编程技术网

Meteor Account.createUser TypeError:无法读取属性';accessToken';未定义的

Meteor Account.createUser TypeError:无法读取属性';accessToken';未定义的,meteor,access-token,createuser,Meteor,Access Token,Createuser,我尝试创建用户注册。我已经安装了 accounts-base 1.2.2* A user account system accounts-password 1.1.4* Password support for accounts 在客户端: var userNew = { password: textPassword, username: textUserName,

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

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
});

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