{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/5351","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/5351/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/5351/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/5351/events","html_url":"https://github.com/angular/angular-cli/issues/5351","id":213134630,"number":5351,"title":"tsconfig.app.json types are ignored","user":{"login":"coryrylan","id":2021067,"avatar_url":"https://avatars0.githubusercontent.com/u/2021067?v=3","gravatar_id":"","url":"https://api.github.com/users/coryrylan","html_url":"https://github.com/coryrylan","followers_url":"https://api.github.com/users/coryrylan/followers","following_url":"https://api.github.com/users/coryrylan/following{/other_user}","gists_url":"https://api.github.com/users/coryrylan/gists{/gist_id}","starred_url":"https://api.github.com/users/coryrylan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coryrylan/subscriptions","organizations_url":"https://api.github.com/users/coryrylan/orgs","repos_url":"https://api.github.com/users/coryrylan/repos","events_url":"https://api.github.com/users/coryrylan/events{/privacy}","received_events_url":"https://api.github.com/users/coryrylan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-09T19:08:40Z","updated_at":"2017-03-11T03:11:16Z","closed_at":null,"body":"> Please provide us with the following information:\r\n> ---------------------------------------------------------------\r\n\r\n### OS?\r\nWindows 10 x64\r\n\r\n### Versions.\r\n@angular/cli: 1.0.0-rc.1\r\nnode: 6.9.1\r\nos: win32 x64\r\n\r\n\r\n### Repro steps.\r\nUpdate package.json from `@angular/cli\": \"1.0.0-rc.0` to `@angular/cli\": \"1.0.0-rc.1`. \r\n\r\n\r\n### The log given by the failure.\r\n`Cannot find name 'require'`\r\n`Cannot find namespace 'ol'`\r\n`Cannot find name 'describe'`\r\n`Cannot find name 'beforeEach'`\r\n`Cannot find name 'it'`\r\n`Cannot find name 'expect'`\r\n\r\n\r\n### Mention any other details that might be useful.\r\nWhen using certain 3rd party libraries or `require()`  you need to add the types to the `tsconfig.app.json` as described here https://github.com/angular/angular-cli/wiki/stories-third-party-lib. In the latest RC1 it looks like the `types` option is ignored resulting the above error.  If I remove the `types` entry and replace it with the global `typeRoots` entry it seems to work but is not ideal to pull in all types.  This also affects the `tsconfig.spec.json`.\r\n\r\n## Breaks in RC1, used to work in RC0\r\n```\r\n{\r\n  \"compilerOptions\": {\r\n    \"sourceMap\": true,\r\n    \"declaration\": false,\r\n    \"moduleResolution\": \"node\",\r\n    \"emitDecoratorMetadata\": true,\r\n    \"experimentalDecorators\": true,\r\n    \"lib\": [\r\n      \"es2016\",\r\n      \"dom\"\r\n    ],\r\n    \"outDir\": \"../out-tsc/app\",\r\n    \"target\": \"es5\",\r\n    \"module\": \"es2015\",\r\n    \"baseUrl\": \"\",\r\n    \"types\": [\r\n      \"node\",\r\n      \"openlayers\"\r\n    ]\r\n  },\r\n  \"exclude\": [\r\n    \"test.ts\",\r\n    \"**/*.spec.ts\"\r\n  ]\r\n}\r\n```\r\n\r\n## Work around for RC1\r\n```\r\n{\r\n  \"compilerOptions\": {\r\n    \"sourceMap\": true,\r\n    \"declaration\": false,\r\n    \"moduleResolution\": \"node\",\r\n    \"emitDecoratorMetadata\": true,\r\n    \"experimentalDecorators\": true,\r\n    \"lib\": [\r\n      \"es2016\",\r\n      \"dom\"\r\n    ],\r\n    \"outDir\": \"../out-tsc/app\",\r\n    \"target\": \"es5\",\r\n    \"module\": \"es2015\",\r\n    \"baseUrl\": \"\",\r\n    \"typeRoots\": [\r\n      \"../node_modules/@types\"\r\n    ]\r\n  },\r\n  \"exclude\": [\r\n    \"test.ts\",\r\n    \"**/*.spec.ts\"\r\n  ]\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular-cli/issues/comments/285837437","html_url":"https://github.com/angular/angular-cli/issues/5351#issuecomment-285837437","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/5351","id":285837437,"user":{"login":"GustavoMantuan","id":5321081,"avatar_url":"https://avatars0.githubusercontent.com/u/5321081?v=3","gravatar_id":"","url":"https://api.github.com/users/GustavoMantuan","html_url":"https://github.com/GustavoMantuan","followers_url":"https://api.github.com/users/GustavoMantuan/followers","following_url":"https://api.github.com/users/GustavoMantuan/following{/other_user}","gists_url":"https://api.github.com/users/GustavoMantuan/gists{/gist_id}","starred_url":"https://api.github.com/users/GustavoMantuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GustavoMantuan/subscriptions","organizations_url":"https://api.github.com/users/GustavoMantuan/orgs","repos_url":"https://api.github.com/users/GustavoMantuan/repos","events_url":"https://api.github.com/users/GustavoMantuan/events{/privacy}","received_events_url":"https://api.github.com/users/GustavoMantuan/received_events","type":"User","site_admin":false},"created_at":"2017-03-11T03:11:16Z","updated_at":"2017-03-11T03:11:16Z","body":"Thank you so much, Its helped me a lot."}}
{"actor":{"display_login":"GustavoMantuan"}}