[Resolved] Can't figure out how to import Meteor dependencies

I have this simple code which according to the docs I’d think would work.

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


Meteor.methods({
   SendNewUserMail: function () {
      Accounts.createUser({
        username: 'andreas',
        password: 'admin'
      });
   });
});

However meteor throws me an error that accounts is not defined. What am I doing wrong here?

Packages installed:

ecmascript            0.5.9-beta.4* Compiler plugin that supports ES2015+ in all .js files
force-ssl             1.0.12  Require this application to use HTTPS
meteor                1.2.17_1  Core Meteor environment
meteor-base           1.0.4  Packages that every Meteor app needs
mongo                 1.1.12_5  Adaptor for using MongoDB and Minimongo over DDP
mwc:synthesis         1.0.41  Synthesis is meteor + polymer
standard-minifier-js  1.2.0_1  Standard javascript minifiers used with Meteor apps by default.
webapp                1.3.12-beta.4* Serves a Meteor app over HTTP

Ahem, this can be closed… no sleep ain’t good

Aren’t you missing the accounts-base package?

Yes, exactly. I was using a stripped down boilerplate without the accounts package and didn’t notice. I noticed a few min after posting here thanks to my list of packages posted ;). The import of the meteor package works just as it’s written above.