{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/9335","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/9335/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/9335/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/9335/events","html_url":"https://github.com/Microsoft/TypeScript/issues/9335","id":162018405,"number":9335,"title":"experimentalDecorators Typescript warning always present","user":{"login":"dbaeumer","id":1931590,"avatar_url":"https://avatars.githubusercontent.com/u/1931590?v=3","gravatar_id":"","url":"https://api.github.com/users/dbaeumer","html_url":"https://github.com/dbaeumer","followers_url":"https://api.github.com/users/dbaeumer/followers","following_url":"https://api.github.com/users/dbaeumer/following{/other_user}","gists_url":"https://api.github.com/users/dbaeumer/gists{/gist_id}","starred_url":"https://api.github.com/users/dbaeumer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbaeumer/subscriptions","organizations_url":"https://api.github.com/users/dbaeumer/orgs","repos_url":"https://api.github.com/users/dbaeumer/repos","events_url":"https://api.github.com/users/dbaeumer/events{/privacy}","received_events_url":"https://api.github.com/users/dbaeumer/received_events","type":"User","site_admin":false},"labels":[{"id":113971601,"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/External","name":"External","color":"eb6420","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":35,"created_at":"2016-06-23T20:42:30Z","updated_at":"2016-11-25T08:40:22Z","closed_at":"2016-07-07T01:26:56Z","body":"_From @giacomorebonato on June 23, 2016 18:53_\n- VSCode Version: 1.3.0-insider\n- OS Version: El Capitan\n\nSteps to Reproduce:\n1. Create a Typescript project\n2. Use decorators (I am using [Mobx](https://mobxjs.github.io/mobx/best/syntax.html))  \n\nI keep seeing the warning:  \n\n```\n[ts] Experimental suport for decorators is a feature that is subject to chang in a future release. Set the 'experimentalDecoratos' option to remove this warning.\n```\n\nWhere should I set this option? Because my tsconfig.json should be right  \n\n```\n{\n  \"compilerOptions\": {\n    \"target\": \"es5\",\n    \"module\": \"commonjs\",\n    \"declaration\": false,\n    \"noImplicitAny\": false,\n    \"removeComments\": false,\n    \"isolatedModules\": false,\n    \"jsx\": \"react\",\n    \"experimentalDecorators\": true,\n    \"emitDecoratorMetadata\": true,\n    \"noLib\": false,\n    \"preserveConstEnums\": true,\n    \"suppressImplicitAnyIndexErrors\": true,\n    \"outDir\": \"./dist/\"\n  },\n  \"exclude\": [\n    \"client\",\n    \"node_modules\",\n    \"typings/browser\",\n    \"typings/browser.d.ts\"\n  ]\n}\n```\n\n_Copied from original issue: Microsoft/vscode#8069_\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/262906311","html_url":"https://github.com/Microsoft/TypeScript/issues/9335#issuecomment-262906311","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/9335","id":262906311,"user":{"login":"SherlockStd","id":11234273,"avatar_url":"https://avatars.githubusercontent.com/u/11234273?v=3","gravatar_id":"","url":"https://api.github.com/users/SherlockStd","html_url":"https://github.com/SherlockStd","followers_url":"https://api.github.com/users/SherlockStd/followers","following_url":"https://api.github.com/users/SherlockStd/following{/other_user}","gists_url":"https://api.github.com/users/SherlockStd/gists{/gist_id}","starred_url":"https://api.github.com/users/SherlockStd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SherlockStd/subscriptions","organizations_url":"https://api.github.com/users/SherlockStd/orgs","repos_url":"https://api.github.com/users/SherlockStd/repos","events_url":"https://api.github.com/users/SherlockStd/events{/privacy}","received_events_url":"https://api.github.com/users/SherlockStd/received_events","type":"User","site_admin":false},"created_at":"2016-11-25T08:40:22Z","updated_at":"2016-11-25T08:40:22Z","body":"Here is what worked for me : \r\n\r\n## VSCode : \r\nVersion 1.7.2\r\nValidation 7ba55c5860b152d999dda59393ca3ebeb1b5c85f\r\nDate 2016-11-21T22:14:18.217Z\r\nInterpréteur de commandes 1.3.8\r\nConvertisseur 52.0.2743.82\r\nNode 6.5.0\r\n\r\n## TypeScript\r\nVersion 2.1.1\r\n\r\nMy tsconfig.json was : \r\n\r\n```\r\n{\r\n  \"compilerOptions\": {\r\n    \"target\": \"es5\",\r\n    \"module\": \"commonjs\",\r\n    \"moduleResolution\": \"node\",\r\n    \"sourceMap\": true,\r\n    \"emitDecoratorMetadata\": true,\r\n    \"experimentalDecorators\": true,\r\n    \"removeComments\": false,\r\n    \"noImplicitAny\": false,\r\n    \"outDir\": \"public/\",\r\n    \"sourceRoot\": \"app/\"\r\n  },\r\n  \"include\": [\r\n    \"app/**.ts\"\r\n  ],\r\n  \"exclude\": [\r\n    \"node_modules\",\r\n    \"**/*.spec.ts\",\r\n    \"public\"\r\n  ]\r\n}\r\n```\r\n\r\nI removed these two lines : \r\n\r\n```\r\n\"outDir\": \"public/\",\r\n\"sourceRoot\": \"app/\"\r\n```\r\n\r\n\r\n so it now looks like this and no more error : \r\n\r\n```\r\n{\r\n  \"compilerOptions\": {\r\n    \"target\": \"es5\",\r\n    \"module\": \"commonjs\",\r\n    \"moduleResolution\": \"node\",\r\n    \"sourceMap\": true,\r\n    \"emitDecoratorMetadata\": true,\r\n    \"experimentalDecorators\": true,\r\n    \"removeComments\": false,\r\n    \"noImplicitAny\": false\r\n  },\r\n  \"include\": [\r\n    \"app/**.ts\"\r\n  ],\r\n  \"exclude\": [\r\n    \"node_modules\",\r\n    \"**/*.spec.ts\",\r\n    \"public\"\r\n  ]\r\n}\r\n```"}}
{"actor":{"display_login":"SherlockStd"}}