{"action":"closed","issue":{"url":"https://api.github.com/repos/ben-eb/cssnano/issues/254","repository_url":"https://api.github.com/repos/ben-eb/cssnano","labels_url":"https://api.github.com/repos/ben-eb/cssnano/issues/254/labels{/name}","comments_url":"https://api.github.com/repos/ben-eb/cssnano/issues/254/comments","events_url":"https://api.github.com/repos/ben-eb/cssnano/issues/254/events","html_url":"https://github.com/ben-eb/cssnano/issues/254","id":172412564,"number":254,"title":"Cssnano breaks gulp on linux","user":{"login":"cronfy","id":762954,"avatar_url":"https://avatars.githubusercontent.com/u/762954?v=3","gravatar_id":"","url":"https://api.github.com/users/cronfy","html_url":"https://github.com/cronfy","followers_url":"https://api.github.com/users/cronfy/followers","following_url":"https://api.github.com/users/cronfy/following{/other_user}","gists_url":"https://api.github.com/users/cronfy/gists{/gist_id}","starred_url":"https://api.github.com/users/cronfy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cronfy/subscriptions","organizations_url":"https://api.github.com/users/cronfy/orgs","repos_url":"https://api.github.com/users/cronfy/repos","events_url":"https://api.github.com/users/cronfy/events{/privacy}","received_events_url":"https://api.github.com/users/cronfy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-22T09:58:06Z","updated_at":"2016-08-22T15:55:38Z","closed_at":"2016-08-22T15:55:38Z","body":"When requiring ```cssnano``` in ```gulpfile.js```, ```gulp.src()``` crashes:\r\n\r\n```\r\nnanotest@layoone ~/tmp/project $ gulp\r\n(node:18708) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.\r\n[12:53:20] Using gulpfile ~/tmp/project/gulpfile.js\r\n[12:53:20] Starting 'default'...\r\n[12:53:20] 'default' errored after 4.94 ms\r\n[12:53:20] TypeError: Cannot read property 'length' of undefined\r\n    at flattenGlob (/home/nanotest/tmp/project/node_modules/glob2base/index.js:9:25)\r\n    at setToBase (/home/nanotest/tmp/project/node_modules/glob2base/index.js:48:12)\r\n    at module.exports (/home/nanotest/tmp/project/node_modules/glob2base/index.js:56:19)\r\n    at Object.gs.createStream (/home/nanotest/tmp/project/node_modules/glob-stream/index.js:34:42)\r\n    at Object.gs.create (/home/nanotest/tmp/project/node_modules/glob-stream/index.js:68:42)\r\n    at Gulp.src (/home/nanotest/tmp/project/node_modules/vinyl-fs/lib/src/index.js:33:23)\r\n    at Gulp.<anonymous> (/home/nanotest/tmp/project/gulpfile.js:5:15)\r\n    at module.exports (/home/nanotest/tmp/project/node_modules/orchestrator/lib/runTask.js:34:7)\r\n    at Gulp.Orchestrator._runTask (/home/nanotest/tmp/project/node_modules/orchestrator/index.js:273:3)\r\n    at Gulp.Orchestrator._runStep (/home/nanotest/tmp/project/node_modules/orchestrator/index.js:214:10)\r\n```\r\n\r\nSteps to reproduce:\r\n\r\n```\r\n# new user\r\n\r\nadduser --disabled-password --gecos \"\" username\r\nsu - nanotest\r\n\r\n\r\n\r\n# node\r\n\r\ngit clone https://github.com/basherpm/basher.git ~/.basher\r\necho 'export PATH=\"$HOME/.basher/bin:$PATH\"' >> ~/.bash_profile\r\necho 'eval \"$(basher init -)\"' >> ~/.bash_profile\r\n\r\n. ~/.bash_profile\r\n\r\nbasher install isaacs/nave\r\n\r\nnave use stable\r\n\r\nnpm install --global npm\r\nnpm install --global gulp-cli\r\n\r\n\r\n\r\n\r\n# project\r\n\r\ncd \r\nmkdir tmp\r\ncd tmp\r\nmkdir project\r\ncd project\r\nmkdir src css\r\necho \"h1 { font-weight: bold }\" > src/style.css\r\n\r\ncat << EOF > package.json\r\n{\r\n  \"name\": \"project\",\r\n  \"version\": \"1.0.0\",\r\n  \"description\": \"Test gulp-cssnano\",\r\n  \"main\": \"index.js\",\r\n  \"scripts\": {\r\n    \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\"\r\n  },\r\n  \"keywords\": [],\r\n  \"author\": \"\",\r\n  \"license\": \"ISC\",\r\n  \"devDependencies\": {\r\n    \"cssnano\": \"^3.7.4\",\r\n    \"gulp\": \"^3.9.1\"\r\n  }\r\n}\r\nEOF\r\n\r\nnpm install\r\n\r\ncat << EOF > gulpfile.js\r\nvar gulp = require('gulp');\r\nvar cssnano = require('cssnano');\r\n\r\ngulp.task('default', function() {\r\n  return gulp.src('src/*.css');\r\n});\r\nEOF\r\n\r\n\r\n# run\r\n\r\ngulp\r\n```\r\n\r\nSee also: ben-eb/gulp-cssnano/issues/54"}}
{"actor":{"display_login":"ben-eb"}}