title: Meteor accounts: Accounts.ui.config - Cannot read property 'config' of undefined
body: <p>in a new meteor project I added accounts-ui, accounts-password and accounts-google. I created a file called client/config.js, in which I placed the code:</p>
  
  <pre><code>Accounts.ui.config({
    requestOfflineToken: {
      google: true
    },
    passwordSignupFields: 'USERNAME_AND_EMAIL'
  });
  </code></pre>
  
  <p>as the <a href="http://docs.meteor.com/#/full/accounts_ui_config" rel="nofollow">docs suggest</a>. </p>
  
  <p>in the console of the browser, this throws a: <code>
  config.js:1 Uncaught TypeError: Cannot read property 'config' of undefined</code></p>
  
  <p>the funny thing is, that the code seems to be working; I get username and email as requested, and a google oauth thing in the loginButtons dialog.</p>
  
  <p>So what to do about the ugly error? It looks like I put it in the wrong location or something. I also tried putting it in client/compatibility, but same result. What causes this?</p>