title: Configuration annotations error: Argument 'fn' is not a function, got string
body: <p>I've used annotations everywhere (in controllers, services,...) except for a few files. As I'm getting problems with minification, I'm rewriting these last few files.</p>
  
  <p>This is my current config:</p>
  
  <pre><code>(function () {
  
      angular.module('app')
          .config(function ($stateProvider, $urlRouterProvider, $provide, $httpProvider, showErrorsConfigProvider, LightboxProvider) {
              $httpProvider.interceptors.push('requestsErrorHandler');
              $urlRouterProvider.otherwise('/');
              showErrorsConfigProvider.showSuccess(true);
  
              // more code
              // routing and stuff...
  
  
          });
  
  }());
  </code></pre>
  
  <p>This works fine. I'm now trying to rewrite this with annotations:</p>
  
  <pre><code>(function () {
  
      angular.module('app')
          .config('configurationapp', configurationapp);
  
      configurationapp.$inject = ['$stateProvider', '$urlRouterProvider', '$provide', '$httpProvider', 'showErrorsConfigProvider', 'LightboxProvider'];
  
      function configurationapp($stateProvider, $urlRouterProvider, $provide, $httpProvider, showErrorsConfigProvider, LightboxProvider) {
              $httpProvider.interceptors.push('requestsErrorHandler');
              $urlRouterProvider.otherwise('/');
              showErrorsConfigProvider.showSuccess(true);
  
  
              // more code
              // routing and stuff
  
  
          }
  }());
  </code></pre>
  
  <p>However, I'm getting this error:</p>
  
  <pre><code>Uncaught Error: [$injector:modulerr] Failed to instantiate module app due to:
  Error: [ng:areq] Argument 'fn' is not a function, got string
  </code></pre>
  
  <p>I don't understand why I'm getting this error. I've done <strong>exactly</strong> the same as with all other files, still this doesn't work. </p>
  
  <p>What am I doing wrong?</p>