These are chat archives for AngularClass/angular2-webpack-starter

Sep 2016
Mark Pritchett
Sep 27 2016 07:30

Just found: which is useful but it breaks the unit tests.

My component looks like:

  selector: 'app',
  encapsulation: ViewEncapsulation.None,
  styleUrls: [
  templateUrl: './app.component.html'
export class App {
  angularclassLogo = 'assets/img/angularclass-avatar.png';
  name = 'Angular 2 Webpack Starter';
  url = '';
  apiUrl = API_URL;
    public appState: AppState) {


  ngOnInit() {
    console.log('Initial App State', this.appState.state);


I get a ReferenceError: API_URL is not defined error. Any ideas on how to use global variables that were defined using DefinePlugin in components?

Jonas Möller
Sep 27 2016 12:05

I'm migrating to angular2-webpack-starter, but got the following error upon start:

/angular2-webpack-starter/node_modules/angular2-component-outlet/src/provider.d.ts:21:64 Cannot find name 'NgModule'. [default] Checking finished with 1 errors

angular2-component-outlet is a dependency I added via npm install - do I need to edit a config file somehow?