When trying to use some of the basic accounts methods in meteor,
- Accounts.addEmail
- Accounts.setUsername
I always get the following error:
Uncaught TypeError: Accounts.[function] is not a function
This is confusing since other Accounts methods such as Accounts.createUser work as expected. Some other threads mentioned that this might have to do with meteor being out of date. This is not the case as I am running the latest version (1.2.1).
Also, if I start up the meteor shell command and search for either Accounts.addEmail or Accounts.setUsername, the shell states that they are indeed functions.
The relevant packages I am using are:
- accounts-password
- accounts-ui