my project was generated with [Angular CLI] version 1.2.6.
I can compile the project and it works fine, but I always get error in vs code telling me cannot find mo
In my case it was a mispelling of the import line. Check that you have spelt the @angular/core part properly if typing it out manually.
import { Component } from '@angular/core';