experimentalDecorators related error release candidate of Ionic 2

Hi

I am getting below error on HomePage class in Ionic 2 starter project.

[ts] Experimental support for decorators is a feature that is subject to change in a future release. Set the ‘experimentalDecorators’ option to remove this warning.
export class HomePage

Please help.

If you’re using VS Code, this is what worked for me:

Go to File/Preferences/Workspace Settings

// Place your settings in this file to overwrite default and user settings.
{
    "typescript.tsdk": "node_modules\\typescript\\lib"

}
2 Likes

These settings work for me. (in setting.json)

{
“editor.experimentalDecorators”: true,
“editor.tabCompletion”: true,
“editor.snippetSuggestions”: “inline”,
“editor.quickSuggestions”: true,
“typescript.tsdk”: “node_modules//typescript//lib”

}

1 Like

Thanks @gigocabera. it works for me too in visual studio code.

Hey, gigocagrera.
It doesn’t work for me.

So I added the following settings.
File -> Preference -> Settings
“javascript.implicitProjectConfig.experimentalDecorators”: true

And It did.
thanks.