{"action":"created","issue":{"url":"https://api.github.com/repos/koistya/react-static-boilerplate/issues/60","labels_url":"https://api.github.com/repos/koistya/react-static-boilerplate/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/koistya/react-static-boilerplate/issues/60/comments","events_url":"https://api.github.com/repos/koistya/react-static-boilerplate/issues/60/events","html_url":"https://github.com/koistya/react-static-boilerplate/issues/60","id":125113078,"number":60,"title":"webpack error: '//' is an unknown word in _bootstrap.scss","user":{"login":"itxchy","id":8886227,"avatar_url":"https://avatars.githubusercontent.com/u/8886227?v=3","gravatar_id":"","url":"https://api.github.com/users/itxchy","html_url":"https://github.com/itxchy","followers_url":"https://api.github.com/users/itxchy/followers","following_url":"https://api.github.com/users/itxchy/following{/other_user}","gists_url":"https://api.github.com/users/itxchy/gists{/gist_id}","starred_url":"https://api.github.com/users/itxchy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itxchy/subscriptions","organizations_url":"https://api.github.com/users/itxchy/orgs","repos_url":"https://api.github.com/users/itxchy/repos","events_url":"https://api.github.com/users/itxchy/events{/privacy}","received_events_url":"https://api.github.com/users/itxchy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-06T05:27:39Z","updated_at":"2016-01-12T19:16:05Z","closed_at":null,"body":"I apologize if this is in the wrong place, but I'm not too familiar with `webpack`, and I can't tell if this is an issue with `css-loader`, `postcss` or something else.\r\n\r\nAfter installing `bootstrap-sass` from NPM, I tried importing it in index.js and got this error:\r\n\r\n```\r\nERROR in ./~/css-loader!./~/postcss-loader!./~/bootstrap-sass/assets/stylesheets/_bootstrap.scss\r\n/home/itxchy/www/ccf-react/node_modules/bootstrap-sass/assets/stylesheets/_bootstrap.scss:7:1: Unknown word\r\n\r\n// Core variables and mixins\r\n^\r\n@import \"bootstrap/variables\";\r\n\r\nERROR in ./~/css-loader!./~/postcss-loader!./~/bootstrap-sass/assets/stylesheets/_bootstrap.scss\r\nModule build failed: TypeError: Cannot read property 'toString' of undefined\r\n    at new Input (/home/itxchy/www/ccf-react/node_modules/postcss/lib/input.js:31:23)\r\n    at parse (/home/itxchy/www/ccf-react/node_modules/postcss/lib/parse.js:22:17)\r\n    at new LazyResult (/home/itxchy/www/ccf-react/node_modules/postcss/lib/lazy-result.js:61:24)\r\n    at Processor.process (/home/itxchy/www/ccf-react/node_modules/postcss/lib/processor.js:34:16)\r\n    at processCss (/home/itxchy/www/ccf-react/node_modules/css-loader/lib/processCss.js:165:11)\r\n    at Object.module.exports (/home/itxchy/www/ccf-react/node_modules/css-loader/lib/loader.js:22:2)\r\n @ ./~/bootstrap-sass/assets/stylesheets/_bootstrap.scss 4:14-110 13:2-17:4 14:20-116\r\n\r\n```\r\n\r\nHere's index.js for reference. I only added the bootstrap import, a bootstrappy button, and a smaller `index.scss` file to test this:\r\n\r\n* index.js\r\n```jsx\r\nimport React, { Component } from 'react';\r\nimport '../node_modules/bootstrap-sass/assets/stylesheets/_bootstrap.scss';\r\nimport './index.scss';\r\n\r\nexport default class extends Component {\r\n\r\n  render() {\r\n    return (\r\n      <div>\r\n        <h1>Home Page</h1>\r\n        <button type=\"button\" class=\"btn btn-danger\">Dangerous Button!</button>\r\n        <p>Coming soon.</p>\r\n      </div>\r\n    );\r\n  }\r\n}\r\n```\r\n\r\nThe `index.scss` file with a `// comment` plus a style worked just fine. \r\n\r\n* index.scss\r\n```scss\r\n@import '../components/variables.scss';\r\n\r\n// test\r\n\r\nh1 {\r\n  font-size: 2em;\r\n}\r\n```\r\n\r\nAny idea what's causing this?"},"comment":{"url":"https://api.github.com/repos/koistya/react-static-boilerplate/issues/comments/171020820","html_url":"https://github.com/koistya/react-static-boilerplate/issues/60#issuecomment-171020820","issue_url":"https://api.github.com/repos/koistya/react-static-boilerplate/issues/60","id":171020820,"user":{"login":"jessemezini","id":4007679,"avatar_url":"https://avatars.githubusercontent.com/u/4007679?v=3","gravatar_id":"","url":"https://api.github.com/users/jessemezini","html_url":"https://github.com/jessemezini","followers_url":"https://api.github.com/users/jessemezini/followers","following_url":"https://api.github.com/users/jessemezini/following{/other_user}","gists_url":"https://api.github.com/users/jessemezini/gists{/gist_id}","starred_url":"https://api.github.com/users/jessemezini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessemezini/subscriptions","organizations_url":"https://api.github.com/users/jessemezini/orgs","repos_url":"https://api.github.com/users/jessemezini/repos","events_url":"https://api.github.com/users/jessemezini/events{/privacy}","received_events_url":"https://api.github.com/users/jessemezini/received_events","type":"User","site_admin":false},"created_at":"2016-01-12T19:16:05Z","updated_at":"2016-01-12T19:16:05Z","body":"Hi, i'm with the same problem :("}}