Title: tsconfig.app.json types are ignored · Issue #5351 · angular/angular-cli · GitHub
Open Graph Title: tsconfig.app.json types are ignored · Issue #5351 · angular/angular-cli
X Title: tsconfig.app.json types are ignored · Issue #5351 · angular/angular-cli
Description: Please provide us with the following information: OS? Windows 10 x64 Versions. @angular/cli: 1.0.0-rc.1 node: 6.9.1 os: win32 x64 Repro steps. Update package.json from @angular/cli": "1.0.0-rc.0 to @angular/cli": "1.0.0-rc.1. The log giv...
Open Graph Description: Please provide us with the following information: OS? Windows 10 x64 Versions. @angular/cli: 1.0.0-rc.1 node: 6.9.1 os: win32 x64 Repro steps. Update package.json from @angular/cli": "1.0.0-rc.0 to...
X Description: Please provide us with the following information: OS? Windows 10 x64 Versions. @angular/cli: 1.0.0-rc.1 node: 6.9.1 os: win32 x64 Repro steps. Update package.json from @angular/cli": "1.0...
Opengraph URL: https://github.com/angular/angular-cli/issues/5351
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tsconfig.app.json types are ignored","articleBody":"> 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","author":{"url":"https://github.com/coryrylan","@type":"Person","name":"coryrylan"},"datePublished":"2017-03-09T19:08:40Z","url":"https://github.com/angular/angular-cli/issues/5351"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:99e6cac2-af5e-ad47-1278-1bb0ae1575eb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A848:F8C5C:1150A38:15C1E34:6B023A9D |
| html-safe-nonce | 8b9b2c39d7d4f6859e9e2d8adbcf524051feeb03e9b97348fd5c7770b8f6e39f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODQ4OkY4QzVDOjExNTBBMzg6MTVDMUUzNDo2QjAyM0E5RCIsInZpc2l0b3JfaWQiOiI0OTU4Nzk2MTAzMDM1MjcxODM3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4bf3fc44ad722a905dfc41e215f834507ded150f7593a8e1cec77d276dbd8dbc |
| hovercard-subject-tag | issue:213134630 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/5351/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e96afb00905232da138e9ee36d28c48c040fb97060481efe70988f45c854a49c/angular/angular-cli/issues/5351 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e96afb00905232da138e9ee36d28c48c040fb97060481efe70988f45c854a49c/angular/angular-cli/issues/5351 |
| og:image:alt | Please provide us with the following information: OS? Windows 10 x64 Versions. @angular/cli: 1.0.0-rc.1 node: 6.9.1 os: win32 x64 Repro steps. Update package.json from @angular/cli": "1.0.0-rc.0 to... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | coryrylan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width