Skip to content

main.ts is missing from de TypeScript compilation #9909

@santiagoblas

Description

@santiagoblas

Hello,

I just installed node and tried to use cli.
I went with the guide:

`npm install -g @angular/cli

ng new my-project
cd my-project
ng serve`

aaaaaand.... nope:

ERROR in C:/Users/hpelitebook/Documents/github/angularjs/angular2/src/main.ts Module build failed: Error: C:\Users\hpelitebook\Documents\github\angularjs\angular2\src\main.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property. at AngularCompilerPlugin.getCompiledFile (C:\Users\hpelitebook\Documents\github\angularjs\angular2\node_modules\@ngtools\webpack\src\angular_compiler_plugin.js:674:23) at plugin.done.then (C:\Users\hpelitebook\Documents\github\angularjs\angular2\node_modules\@ngtools\webpack\src\loader.js:467:39) at <anonymous> ERROR in C:/Users/hpelitebook/Documents/github/angularjs/angular2/src/polyfills.ts Module build failed: Error: C:\Users\hpelitebook\Documents\github\angularjs\angular2\src\polyfills.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property. at AngularCompilerPlugin.getCompiledFile (C:\Users\hpelitebook\Documents\github\angularjs\angular2\node_modules\@ngtools\webpack\src\angular_compiler_plugin.js:674:23) at plugin.done.then (C:\Users\hpelitebook\Documents\github\angularjs\angular2\node_modules\@ngtools\webpack\src\loader.js:467:39) at <anonymous>

This is my first time with it and i'm not sure where to look

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions