When trying to use one of the basic Accounts methods listed below on the server-side, I always get an error of the following type:
TypeError: Object # has no method 'removeEmail'
Server Methods:
- Accounts.addEmail()
- Accounts.removeEmail()
- Accounts.findUserByUsername()
- Accounts.findUserByEmail()
I have tried from inside the app and from the REPL shell.
Accounts-related packages I use:
- meteor-platform
- accounts-password
- accounts-facebook
- pauli:accounts-linkedin
- accounts-twitter
- splendido:accounts-emails-field
- accounts-base
- alanning:roles
You are probably running a Meteor version prior to Meteor 1.2. I think all of the functions you mention were added in 1.2. To check your meteor version, run:
If that isn't the problem, please provide the exact code that is causing the error you mentioned.
FYI, the following shows that those methods exist in my Meteor 1.2 installation with the packages you mentioned: