{"action":"opened","issue":{"url":"https://api.github.com/repos/alphagov/govuk_elements/issues/334","repository_url":"https://api.github.com/repos/alphagov/govuk_elements","labels_url":"https://api.github.com/repos/alphagov/govuk_elements/issues/334/labels{/name}","comments_url":"https://api.github.com/repos/alphagov/govuk_elements/issues/334/comments","events_url":"https://api.github.com/repos/alphagov/govuk_elements/issues/334/events","html_url":"https://github.com/alphagov/govuk_elements/issues/334","id":185081554,"number":334,"title":"Unable to import scss files into Angular2 CLI","user":{"login":"hbweb","id":242059,"avatar_url":"https://avatars.githubusercontent.com/u/242059?v=3","gravatar_id":"","url":"https://api.github.com/users/hbweb","html_url":"https://github.com/hbweb","followers_url":"https://api.github.com/users/hbweb/followers","following_url":"https://api.github.com/users/hbweb/following{/other_user}","gists_url":"https://api.github.com/users/hbweb/gists{/gist_id}","starred_url":"https://api.github.com/users/hbweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hbweb/subscriptions","organizations_url":"https://api.github.com/users/hbweb/orgs","repos_url":"https://api.github.com/users/hbweb/repos","events_url":"https://api.github.com/users/hbweb/events{/privacy}","received_events_url":"https://api.github.com/users/hbweb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-25T10:47:11Z","updated_at":"2016-10-25T10:47:11Z","closed_at":null,"body":"## How would you expect it to work?\r\nI'm unable to import govuk elements sass files into Angular2 CLI project.. as it does not know where to look for partial scss files with underscore prefix.. It could just be Angular CLI bug..However, I've been trying many different ways but no luck so far.\r\n\r\nAny indication to get it work would be much appreciated. \r\n\r\nThanks\r\n\r\n## How does it work currently?\r\nWith angular cli, we can reference the SCSS file to 'styles' attribute. \r\n\r\n\r\n> Please provide us with the following information:\r\nI'm unable to import SCSS partial files into Angular CLI and getting error when running `ng serve` \r\n\r\n### OS?\r\nWindows 10 (Win32 x64)\r\nangular-cli: 1.0.0-beta.17\r\nnode: 6.9.1\r\nos: win32 x64\r\n\r\n\r\n### Versions.\r\nangular-cli: 1.0.0-beta.17\r\nnode: 6.9.1\r\nnpm: 3.10.8\r\n\r\n\r\n### Repro steps.\r\n1. Install Gov.uk npm package from https://github.com/alphagov/govuk_elements\r\n\r\n`npm install govuk-elements-sass --save`\r\n\r\n2. Include scss files into angular-cli.json file\r\n\r\n`\r\n\"styles\": [\r\n        \"../node_modules/bootstrap/dist/css/bootstrap.min.css\",\r\n        \"../node_modules/govuk-elements-sass/public/sass/_govuk-elements.scss\",\r\n        \"styles.scss\"\r\n      ],\r\n`\r\n### The log given by the failure.\r\n`\r\nERROR in ./~/css-loader!./~/postcss-loader!./~/sass-loader!./~/govuk-elements-sass/public/sass/_govuk-elements.scss\r\nModule build failed:\r\nundefined\r\n^\r\n      File to import not found or unreadable: colours\r\nParent style sheet: stdin\r\n      in D:\\workspace\\dnaapp\\node_modules\\govuk-elements-sass\\public\\sass\\_govuk-elements.scss (line 6, column 1)\r\n @ ./~/govuk-elements-sass/public/sass/_govuk-elements.scss 4:14-147\r\n @ multi styles\r\n`\r\n\r\n"}}
{"actor":{"display_login":"hbweb"}}