Can't create new user account, although Accounts is defined


#1

I’m trying to create a new User:

import { Accounts } from "meteor/accounts-base";

let data = {
	email: 				email,
	password: 			"password",
	profile: { 
		name: 			name
	}
},
id  = Accounts.createUser( data );

But this doesn’t work and I don’t get an id. Do I have to import accounts-password also? And if yes, I don’t know how:

import { Accounts } from "meteor/accounts-password";