{"action":"created","issue":{"url":"https://api.github.com/repos/justindujardin/ng2-material/issues/317","repository_url":"https://api.github.com/repos/justindujardin/ng2-material","labels_url":"https://api.github.com/repos/justindujardin/ng2-material/issues/317/labels{/name}","comments_url":"https://api.github.com/repos/justindujardin/ng2-material/issues/317/comments","events_url":"https://api.github.com/repos/justindujardin/ng2-material/issues/317/events","html_url":"https://github.com/justindujardin/ng2-material/issues/317","id":185685023,"number":317,"title":"cannot get it running with angular-cli and angular 2+","user":{"login":"homofortis","id":3680999,"avatar_url":"https://avatars.githubusercontent.com/u/3680999?v=3","gravatar_id":"","url":"https://api.github.com/users/homofortis","html_url":"https://github.com/homofortis","followers_url":"https://api.github.com/users/homofortis/followers","following_url":"https://api.github.com/users/homofortis/following{/other_user}","gists_url":"https://api.github.com/users/homofortis/gists{/gist_id}","starred_url":"https://api.github.com/users/homofortis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/homofortis/subscriptions","organizations_url":"https://api.github.com/users/homofortis/orgs","repos_url":"https://api.github.com/users/homofortis/repos","events_url":"https://api.github.com/users/homofortis/events{/privacy}","received_events_url":"https://api.github.com/users/homofortis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-27T14:30:04Z","updated_at":"2016-11-24T14:52:10Z","closed_at":null,"body":"Any attempt to refer ng2-material components causes typescript errors as : \n\nERROR in [default] /Users/zardoz/Developer/SNBA/dash/node_modules/ng2-material/components/backdrop/backdrop.d.ts:1:0 \nCannot find type definition file for 'core-js'.\n\nERROR in [default] /Users/zardoz/Developer/SNBA/dash/node_modules/ng2-material/components/data-table/data_table.d.ts:1:0 \nCannot find type definition file for 'core-js'.\n\nERROR in [default] /Users/zardoz/Developer/SNBA/dash/node_modules/ng2-material/components/dialog/dialog.d.ts:1:0 \nCannot find type definition file for 'core-js'.\n\nERROR in [default] /Users/zardoz/Developer/SNBA/dash/node_modules/ng2-material/components/pagination/pagination.d.ts:1:0 \nCannot find type definition file for 'core-js'.\n\nERROR in [default] /Users/zardoz/Developer/SNBA/dash/node_modules/ng2-material/core/util/animate.d.ts:1:0 \nCannot find type definition file for 'core-js'.\n\nHere is my package.json:\n\n{\n  \"name\": \"dash\",\n  \"version\": \"0.0.0\",\n  \"license\": \"MIT\",\n  \"angular-cli\": {},\n  \"scripts\": {\n    \"start\": \"ng serve\",\n    \"lint\": \"tslint \\\"src/*_/_.ts\\\"\",\n    \"test\": \"ng test\",\n    \"pree2e\": \"webdriver-manager update\",\n    \"e2e\": \"protractor\"\n  },\n  \"private\": true,\n  \"dependencies\": {\n    \"@angular/common\": \"^2.1.1\",\n    \"@angular/compiler\": \"^2.1.1\",\n    \"@angular/core\": \"^2.1.1\",\n    \"@angular/forms\": \"^2.1.1\",\n    \"@angular/http\": \"^2.1.1\",\n    \"@angular/material\": \"^2.0.0-alpha.9-3\",\n    \"@angular/platform-browser\": \"^2.1.1\",\n    \"@angular/platform-browser-dynamic\": \"^2.1.1\",\n    \"@angular/router\": \"^3.1.1\",\n    \"angular-in-memory-web-api\": \"github:angular/in-memory-web-api\",\n    \"core-js\": \"^2.4.1\",\n    \"font-awesome\": \"^4.7.0\",\n    \"ng2-material\": \"^0.8.1\",\n    \"rxjs\": \"5.0.0-rc.1\",\n    \"ts-helpers\": \"^1.1.2\",\n    \"zone.js\": \"^0.6.26\"\n  },\n  \"devDependencies\": {\n    \"@types/jasmine\": \"^2.5.35\",\n    \"angular-cli\": \"1.0.0-beta.18\",\n    \"codelyzer\": \"~1.0.0-beta.3\",\n    \"es6-promise-loader\": \"^1.0.2\",\n    \"jasmine-core\": \"2.5.2\",\n    \"jasmine-spec-reporter\": \"2.7.0\",\n    \"karma\": \"1.3.0\",\n    \"karma-chrome-launcher\": \"^2.0.0\",\n    \"karma-cli\": \"^1.0.1\",\n    \"karma-jasmine\": \"^1.0.2\",\n    \"karma-remap-istanbul\": \"^0.2.1\",\n    \"protractor\": \"4.0.9\",\n    \"ts-node\": \"1.6.0\",\n    \"tslint\": \"3.15.1\",\n    \"typescript\": \"2.0.3\"\n  }\n}\n\nMaterial itself is running fine. Am I doing something wrong? What is the right way to use the ng2-material components (the demo app documentation is outdated)?\n"},"comment":{"url":"https://api.github.com/repos/justindujardin/ng2-material/issues/comments/262793434","html_url":"https://github.com/justindujardin/ng2-material/issues/317#issuecomment-262793434","issue_url":"https://api.github.com/repos/justindujardin/ng2-material/issues/317","id":262793434,"user":{"login":"aguarino77","id":7809076,"avatar_url":"https://avatars.githubusercontent.com/u/7809076?v=3","gravatar_id":"","url":"https://api.github.com/users/aguarino77","html_url":"https://github.com/aguarino77","followers_url":"https://api.github.com/users/aguarino77/followers","following_url":"https://api.github.com/users/aguarino77/following{/other_user}","gists_url":"https://api.github.com/users/aguarino77/gists{/gist_id}","starred_url":"https://api.github.com/users/aguarino77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aguarino77/subscriptions","organizations_url":"https://api.github.com/users/aguarino77/orgs","repos_url":"https://api.github.com/users/aguarino77/repos","events_url":"https://api.github.com/users/aguarino77/events{/privacy}","received_events_url":"https://api.github.com/users/aguarino77/received_events","type":"User","site_admin":false},"created_at":"2016-11-24T14:52:10Z","updated_at":"2016-11-24T14:52:10Z","body":"Fixed by NOT adding in global styles.scss:\r\n~~@import './../node_modules/ng2-material/all.scss';~~\r\n\r\nbut setting in angular-cli.json\r\n```\r\n\"styles\": [\r\n        \"styles.css\",\r\n        \"../node_modules/ng2-material/all.scss\",\r\n      ],\r\n```\r\n"}}
{"actor":{"display_login":"aguarino77"}}