title: Error when creating redux store in Angular: Error encountered resolving symbol values statically
body: <p>The error appears in app.module.ts. Relevant code:</p>
  
  <pre><code>import { createStore, Store } from 'redux';
  import { rootReducer } from './redux-store/index';
  
  const appStore = createStore(rootReducer);
  
  @NgModule({
    providers: [
      { provide: 'AppStore', useValue: appStore }
    ],
    bootstrap: [AppComponent]
  })
  export class AppModule { }
  </code></pre>
  
  <p>I am using the latest Angular-cli, and this didn't happen with previous versions. The full error text is:</p>
  
  <blockquote>
    <p>ERROR in Error encountered resolving symbol values statically. Only initialized variables and constants can be referenced because the value of this variable is needed by the template compiler (position 251:14 in the original .ts file), resolving symbol createStore in /home/daco/handwork/Angular2/MileageStats2/node_modules/redux/index.d.ts, resolving symbol AppModule in /home/daco/handwork/Angular2/MileageStats2/src/app/app.module.ts, resolving symbol AppModule in /home/daco/handwork/Angular2/MileageStats2/src/app/app.module.ts, resolving symbol AppModule in /home/daco/handwork/Angular2/MileageStats2/src/app/app.module.ts</p>
  </blockquote>