jelbourn / material2-app

Simple app that consumes Angular Material 2 components
650 stars 278 forks source link

Typescript error: file "is not under 'rootDir' when running tsc #2

Closed gxclarke closed 8 years ago

gxclarke commented 8 years ago
cd src/app
tsc

error TS6059: File 'C:/myfolder/material2-app/node_modules/@angular2-material/core/annotations/one-of.ts' is not under 'rootDir' '..'. 'rootDir' is expected to contain all source files.
error TS6059: File 'C:/myfolder/material2-app/node_modules/@angular2-material/core/rtl/dir.ts' is not under 'rootDir' '..'. 'rootDir' is expected to contain all source files.
error TS6059: File 'C:/myfolder/material2-app/node_modules/@angular2-material/radio/radio_dispatcher.ts' is not under 'rootDir' '..'. 'rootDir' is expected to contain all source files.

Any tips on how to compile the typescript files?

jelbourn commented 8 years ago

This project is meant to be used with the angular-cli.

npm install -g angular-cli
ng build