I am encountering an issue with my Angular2 app written in TypeScript when trying to run it in Visual Studio. The error message I receive is:
Build:Module '../../services/company.service' was resolved to '<filepath>/company.service.js', but '--allowJs' is not set.
The line causing the error looks like this:
import { CompanyService } from '../../services/company.service';
Both the ts and js files have the same name, so my question is how can I make Visual Studio resolve the imported file as a ts file instead of a js file?