Skip to content

Error warning message: "Experimental support for decorators is a feature that is subject to change in a future release" #45071

@rohan-paul

Description

@rohan-paul
  • VSCode Version: 1.20.1
    Commit f88bbf9
    Date 2018-02-13T15:31:21.019Z
    Shell 1.7.9
    Renderer 58.0.3029.110
    Node 7.9.0
    Architecture x64
  • OS Version: Ubuntu 16.04 64-bit

Steps to Reproduce:
Create a Typescript project
Write the class declaration, e.g.

export class AuthService {
    constructor(private http: Http) {}
}

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

I have the following in my > File/preference/user settings in vscode

{
  "typescript.tsdk": "node_modules/typescript/lib"
}

Also, in tsconfig.json file in the root directory of my project I have include the following options.

{
    "compilerOptions": {
        "experimentalDecorators": true,
        "allowJs": true
    }
}

Does this issue occur when all extensions are disabled?: Yes/No
Yes

Metadata

Metadata

Assignees

Labels

info-neededIssue requires more information from postertypescriptTypescript support issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions