{"action":"created","issue":{"url":"https://api.github.com/repos/awslabs/aws-cdk/issues/1150","repository_url":"https://api.github.com/repos/awslabs/aws-cdk","labels_url":"https://api.github.com/repos/awslabs/aws-cdk/issues/1150/labels{/name}","comments_url":"https://api.github.com/repos/awslabs/aws-cdk/issues/1150/comments","events_url":"https://api.github.com/repos/awslabs/aws-cdk/issues/1150/events","html_url":"https://github.com/awslabs/aws-cdk/issues/1150","id":379871371,"node_id":"MDU6SXNzdWUzNzk4NzEzNzE=","number":1150,"title":"cdk init (typescript/app): error in template","user":{"login":"deptno","id":1223020,"node_id":"MDQ6VXNlcjEyMjMwMjA=","avatar_url":"https://avatars0.githubusercontent.com/u/1223020?v=4","gravatar_id":"","url":"https://api.github.com/users/deptno","html_url":"https://github.com/deptno","followers_url":"https://api.github.com/users/deptno/followers","following_url":"https://api.github.com/users/deptno/following{/other_user}","gists_url":"https://api.github.com/users/deptno/gists{/gist_id}","starred_url":"https://api.github.com/users/deptno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deptno/subscriptions","organizations_url":"https://api.github.com/users/deptno/orgs","repos_url":"https://api.github.com/users/deptno/repos","events_url":"https://api.github.com/users/deptno/events{/privacy}","received_events_url":"https://api.github.com/users/deptno/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-11-12T17:06:45Z","updated_at":"2018-11-14T08:38:55Z","closed_at":null,"author_association":"NONE","body":"I tried typescript boilerplate and run `npm run build` and saw error message below.\r\n\r\n```bash\r\n> cdk@0.1.0 build /Users/bglee/tmp/cdk\r\n> tsc\r\n\r\n../node_modules/@types/dom4/index.d.ts:13:24 - error TS2304: Cannot find name 'HTMLCollection'.\r\n\r\n13     readonly children: HTMLCollection;\r\n                          ~~~~~~~~~~~~~~\r\n\r\n../node_modules/@types/dom4/index.d.ts:18:28 - error TS2304: Cannot find name 'Node'.\r\n\r\n18     append(...nodes: Array<Node | string>): void;\r\n                              ~~~~\r\n\r\n../node_modules/@types/dom4/index.d.ts:23:29 - error TS2304: Cannot find name 'Node'.\r\n\r\n23     prepend(...nodes: Array<Node | string>): void;\r\n                               ~~~~\r\n\r\n../node_modules/@types/dom4/index.d.ts:33:27 - error TS2304: Cannot find name 'Node'.\r\n\r\n33     after(...nodes: Array<Node | string>): void;\r\n                             ~~~~\r\n\r\n../node_modules/@types/dom4/index.d.ts:38:28 - error TS2304: Cannot find name 'Node'.\r\n\r\n38     before(...nodes: Array<Node | string>): void;\r\n                              ~~~~\r\n\r\n../node_modules/@types/dom4/index.d.ts:43:33 - error TS2304: Cannot find name 'Node'.\r\n\r\n43     replaceWith(...nodes: Array<Node | string>): void;\r\n                                   ~~~~\r\n\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! errno 2\r\nnpm ERR! cdk@0.1.0 build: `tsc`\r\nnpm ERR! Exit status 2\r\nnpm ERR!\r\nnpm ERR! Failed at the cdk@0.1.0 build script.\r\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR!     /Users/bglee/.npm/_logs/2018-11-12T16_52_16_325Z-debug.log\r\n```\r\n\r\nI think `tsconfig.json` includes unnecessary `lib` options.\r\n```json\r\n{\r\n...\r\n  \"target\": \"ES2018\",\r\n  \"lib\": [\"es2016\", \"es2017.object\", \"es2017.string\"]\r\n}\r\n```\r\n\r\ndoes target `es2018` already include `lib` options?\r\nafter remove `lib` option in `tsconfig.json`, `npm run build` command works."},"comment":{"url":"https://api.github.com/repos/awslabs/aws-cdk/issues/comments/438581298","html_url":"https://github.com/awslabs/aws-cdk/issues/1150#issuecomment-438581298","issue_url":"https://api.github.com/repos/awslabs/aws-cdk/issues/1150","id":438581298,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODU4MTI5OA==","user":{"login":"eladb","id":598796,"node_id":"MDQ6VXNlcjU5ODc5Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/598796?v=4","gravatar_id":"","url":"https://api.github.com/users/eladb","html_url":"https://github.com/eladb","followers_url":"https://api.github.com/users/eladb/followers","following_url":"https://api.github.com/users/eladb/following{/other_user}","gists_url":"https://api.github.com/users/eladb/gists{/gist_id}","starred_url":"https://api.github.com/users/eladb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eladb/subscriptions","organizations_url":"https://api.github.com/users/eladb/orgs","repos_url":"https://api.github.com/users/eladb/repos","events_url":"https://api.github.com/users/eladb/events{/privacy}","received_events_url":"https://api.github.com/users/eladb/received_events","type":"User","site_admin":false},"created_at":"2018-11-14T08:38:55Z","updated_at":"2018-11-14T08:38:55Z","author_association":"CONTRIBUTOR","body":"What typescript version are you using?"}}
{"actor":{"display_login":"eladb"}}