Jsconfig.json file for Visual Studio Code

Hello
Running my new apps with VS Code, I have a warning, asking for a jsconfig.json file.
There is a tsconfig file, that’s ok, but since the .js files provided by the default Ionic 2 apps are ES6, shouldn’t ther be such a jsconfig file ?

Thanks !
Alain

Try saving this next to your tsconfig.json

{
“compilerOptions”: {
“target”: “ES6”,
“module”: “commonjs”,
“experimentalDecorators” : true
}
}

1 Like

Hi,

I alreday did that, thank you. Visual Studio Code told me to actually :wink:

But my question was : should the initial “start” ionic command create this file or not ?

Thanks

hi wllb,

saving that setting to tsconfig.json does not work, vs code specifically ask for jsconfig.json. by making copy tsconfig.json as jsconfig.json with that update works. obvious, ionic2 is still new, vs code need to update with the correct config file name.

1 Like