VSCode gave me a lot of errors on the tsconfig.json when I created the tabs-starter and tutorial for the first time


#1

When I created the tutorial at first I noticed that VSCode was giving me a lot of errors in the tsconfig file. The error was that the files array was not supposed to be there and ES5 is supposed to be in lowercase.

{
  "compilerOptions": {

“target”: “es5”,
“module”: “commonjs”,
“noEmitOnError”: false,
“rootDir”: “.”,
“emitDecoratorMetadata”: true,
“experimentalDecorators”: true,
“sourceMap”: false,
“sourceRoot”: “”,
“inlineSourceMap”: false,
“inlineSources”: false
},
“exclude”: [
“node_modules”
],
“compileOnSave”: false
}

After that no more problems :smiley:


#2

I had the same issue using the blank template. I noticed that if you remove the files area, it worked. If you put it back and remove the exclude area it worked also; however, if both are in there it complains. I removed the files area as according to Microsoft, they will take all the files in the folder and sub folders unless this area has a file listed.


#3

I’m having the same issue. It seems that all of the ionic 2 TypeScript templates have this problem. For some reason, the files and exclude cannot co-exist. I’ve Googled it to death and I can’t find a reason. Does anyone on the ionic team use Visual Studio Code for ionic 2 TS development? I wonder if something has changed with TS since the ionic 2 templates where released.