Currently attempting to configure a component in Angular 2 with Typescript using Visual Studio Code on Mac. Encounter the following errors when trying the code below:
duplicate identifier 'Component'.
and Duplicate identifier' DashboardComponent'.
import {Component} from 'angular2/core';
@Component({
selector: 'dashboard',
templateUrl: './dashboard.component.html'
})
export class DashboardComponent {
}
Here is how my file structure is organized:
app
-dashboard
--dashboard.component.html
--dashboard.component.ts
-app.component.html
-app.component.ts
-main.ts
index.html
The DashboardComponent
class is only used in one place in the code.
Uncertain if this issue stems from Visual Studio Code or Typescript/Angular2. Any insights on what could be causing these errors?