Imagine you have an Angular2 application with a file named app.component.ts
that contains some import statements:
import {Component} from 'angular2/core';
import {FiltersService} from "./services/filters-service";
import {SearchPipe} from "./pipes/header-pipe";
import {PaginationPipe} from "./pipes/pagination-pipe";
import {Header} from "./components/header/header.component";
import {Pagination} from "./components/pagination/pagination.component";
import {ConfigService} from "./services/config-service";
import {ResourceService} from "./services/resource-service";
import {HttpService} from "./services/http-service";
import 'rxjs/add/operator/map';
import {GlobalSearch} from "./components/global-search/global-search.component";
import {GlobalSearchPipe} from "./pipes/global-search-pipe";
import {CsvExport} from "./components/dropdown/csv-export.component";
import {HTTP_PROVIDERS} from "angular2/http";
Upon starting the app using npm start
, everything seems to be working fine. However, there are error messages displayed in the console:
app/app.component.ts(1,25): error TS2307: Cannot find module 'angular2/core'.
app/app.component.ts(18,30): error TS2307: Cannot find module 'angular2/http'.