-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Description
TypeScript Version: 2.0.2
Code
tsconfig.json
{
"compileOnSave": true,
"compilerOptions": {
"target": "es5",
"module": "amd",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false,
"outDir": "wwwroot/js"
},
"include": [
"./TypeScripts/**/*.ts"
],
"exclude": [
"node_modules",
"Typings",
"wwwroot"
]
}
In VS 2015 update 3 with TypeScript 2.0.2 tooling installed i'm facing an issue. I can't exclude my node_modules folder. When i start build my project it raises errors inside *.d.ts files which needed to be excluded.
In VS 2015 only TypeScript 2.0.2 tooling installed.
Command 'tsc -v' shows version 2.0.2.
Command 'tsc --project tsconfig.json' don't show any output.
Command 'dotnet build', 'dotnet run' don't produce any issue.
I'm having asp.net mvc core project with angular2.
Please help.
File structure:
wwwroot\node_modules - NOT EXCLUDED
wwwroot\Typings - OK
wwwroot\TypeScripts - OK
...
...
Typings - OK
node_modules - OK
...
Expected behavior:
Avoid and exclude wwwroot/node_modules ts files.
Actual behavior:
It tries to check ts files in the folder wwwroot/node_modules.
Workaround:
The workaround of this situation to remove wwwroot/node_modules folder. Start project in VS. Recreate wwwroot/node_modules folder with all files. Now everthing works even if rebuild project.
But if a restart VS then i will face the same behaviour.