I have defined the following Angular2 component:
import {Component} from \'angular2/core\';
@Component({
selector: \'my-app\',
moduleId: module.id,
te
I hit this error when porting my @angular/angular2 Quickstart project into a new angular cli auto-generated project.
It seems that moduleId: module.id isn't needed anymore.
This is the latest auto-generated component:
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'app works!';
}
Removing all occurances resolved my errors.