{"action":"created","issue":{"url":"https://api.github.com/repos/jonathantneal/precss/issues/28","labels_url":"https://api.github.com/repos/jonathantneal/precss/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/jonathantneal/precss/issues/28/comments","events_url":"https://api.github.com/repos/jonathantneal/precss/issues/28/events","html_url":"https://github.com/jonathantneal/precss/issues/28","id":105628020,"number":28,"title":"TypeError: Cannot read property 'type' of null","user":{"login":"battlemidget","id":51892,"avatar_url":"https://avatars.githubusercontent.com/u/51892?v=3","gravatar_id":"","url":"https://api.github.com/users/battlemidget","html_url":"https://github.com/battlemidget","followers_url":"https://api.github.com/users/battlemidget/followers","following_url":"https://api.github.com/users/battlemidget/following{/other_user}","gists_url":"https://api.github.com/users/battlemidget/gists{/gist_id}","starred_url":"https://api.github.com/users/battlemidget/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/battlemidget/subscriptions","organizations_url":"https://api.github.com/users/battlemidget/orgs","repos_url":"https://api.github.com/users/battlemidget/repos","events_url":"https://api.github.com/users/battlemidget/events{/privacy}","received_events_url":"https://api.github.com/users/battlemidget/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-09T15:59:52Z","updated_at":"2015-09-28T14:29:25Z","closed_at":null,"body":"When attempting to build a es6 project with gulp and postcss, precss will fail with the following error:\r\n\r\n```\r\n/home/adam/Projects/astokes.org/node_modules/gulp-postcss/node_modules/postcss/lib/lazy-result.js:43\r\n        if (typeof css === 'object' && css.type === 'root') {\r\n                                          ^\r\n\r\nTypeError: Cannot read property 'type' of null\r\n    at new LazyResult (/home/adam/Projects/astokes.org/node_modules/gulp-postcss/node_modules/postcss/lib/lazy-result.js:43:43)\r\n    at Processor.process (/home/adam/Projects/astokes.org/node_modules/gulp-postcss/node_modules/postcss/lib/processor.js:36:16)\r\n    at Transform.stream._transform (/home/adam/Projects/astokes.org/node_modules/gulp-postcss/index.js:44:8)\r\n    at Transform._read (_stream_transform.js:167:10)\r\n    at Transform._write (_stream_transform.js:155:12)\r\n    at doWrite (_stream_writable.js:292:12)\r\n    at clearBuffer (_stream_writable.js:396:7)\r\n    at onwrite (_stream_writable.js:331:7)\r\n    at WritableState.onwrite (_stream_writable.js:89:5)\r\n    at afterTransform (_stream_transform.js:79:5)\r\n[~/P/astokes.org]                                 \r\n```\r\n\r\nI'm running node v3.2.0 (iojs), babel 5.8.23, gulp v3.9.0. I'm utilizing gulp/babel to process the site:\r\n\r\n**gulpfile.babel.js**\r\n\r\n```js\r\n\"use strict\";\r\n\r\nimport gulp from \"gulp\";\r\nimport eslint from \"gulp-eslint\";\r\nimport uglify from \"gulp-uglify\";\r\nimport minifycss from \"gulp-minify-css\";\r\nimport concat from \"gulp-concat\";\r\nimport del from \"del\";\r\nimport postcss from \"gulp-postcss\";\r\nimport precss from \"precss\";\r\nimport cssnext from \"cssnext\";\r\nimport cssnano from \"cssnano\";\r\nimport rucksack from \"gulp-rucksack\";\r\n\r\nlet css = [\r\n    \"bower_components/normalize-css/normalize.css\",\r\n    \"bower_components/highlightjs/styles/obsidian.css\",\r\n    \"assets/css/*\"\r\n];\r\n\r\ngulp.task('styles', () => {\r\n    return gulp.src(css)\r\n        .pipe(postcss([\r\n            precss(),\r\n            cssnext(),\r\n            cssnano()]))\r\n        .pipe(rucksack())\r\n        .pipe(minifycss())\r\n        .pipe(concat('main.min.css'))\r\n        .pipe(gulp.dest('public/css'));\r\n});\r\n\r\nlet js = [\r\n    \"bower_components/jquery/dist/jquery.js\",\r\n    \"bower_components/highlightjs/highlight.pack.js\",\r\n    \"assets/js/main.js\"\r\n];\r\n\r\ngulp.task('js', () => {\r\n    return gulp.src(js)\r\n        .pipe(uglify())\r\n        .pipe(concat('main.min.js'))\r\n        .pipe(gulp.dest('public/js'))\r\n});\r\n\r\ngulp.task('lint', () => {\r\n    return gulp.src(['lib/**/*.js'])\r\n        .pipe(eslint())\r\n        .pipe(eslint.format())\r\n        .pipe(eslint.failOnError())\r\n});\r\n\r\ngulp.task('clean', (cb) =>{\r\n    del(['public'], cb);\r\n});\r\n\r\ngulp.task('default', ['clean', 'lint', 'styles', 'js']);\r\n```\r\n\r\nIs this something within precss, or my use of babel, or gulp itself? My project is hosted at if you needed more context around the setup https://github.com/battlemidget/astokes.org"},"comment":{"url":"https://api.github.com/repos/jonathantneal/precss/issues/comments/143759678","html_url":"https://github.com/jonathantneal/precss/issues/28#issuecomment-143759678","issue_url":"https://api.github.com/repos/jonathantneal/precss/issues/28","id":143759678,"user":{"login":"Jonjoe","id":2996688,"avatar_url":"https://avatars.githubusercontent.com/u/2996688?v=3","gravatar_id":"","url":"https://api.github.com/users/Jonjoe","html_url":"https://github.com/Jonjoe","followers_url":"https://api.github.com/users/Jonjoe/followers","following_url":"https://api.github.com/users/Jonjoe/following{/other_user}","gists_url":"https://api.github.com/users/Jonjoe/gists{/gist_id}","starred_url":"https://api.github.com/users/Jonjoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jonjoe/subscriptions","organizations_url":"https://api.github.com/users/Jonjoe/orgs","repos_url":"https://api.github.com/users/Jonjoe/repos","events_url":"https://api.github.com/users/Jonjoe/events{/privacy}","received_events_url":"https://api.github.com/users/Jonjoe/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T14:29:25Z","updated_at":"2015-09-28T14:29:25Z","body":"bump!"}}