{"action":"created","issue":{"url":"https://api.github.com/repos/postcss/postcss-nested/issues/30","repository_url":"https://api.github.com/repos/postcss/postcss-nested","labels_url":"https://api.github.com/repos/postcss/postcss-nested/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/postcss/postcss-nested/issues/30/comments","events_url":"https://api.github.com/repos/postcss/postcss-nested/issues/30/events","html_url":"https://github.com/postcss/postcss-nested/issues/30","id":103870689,"number":30,"title":"ReferenceError: Promise is not defined","user":{"login":"lmartins","id":151981,"avatar_url":"https://avatars.githubusercontent.com/u/151981?v=3","gravatar_id":"","url":"https://api.github.com/users/lmartins","html_url":"https://github.com/lmartins","followers_url":"https://api.github.com/users/lmartins/followers","following_url":"https://api.github.com/users/lmartins/following{/other_user}","gists_url":"https://api.github.com/users/lmartins/gists{/gist_id}","starred_url":"https://api.github.com/users/lmartins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmartins/subscriptions","organizations_url":"https://api.github.com/users/lmartins/orgs","repos_url":"https://api.github.com/users/lmartins/repos","events_url":"https://api.github.com/users/lmartins/events{/privacy}","received_events_url":"https://api.github.com/users/lmartins/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-08-29T19:11:08Z","updated_at":"2016-02-05T16:53:56Z","closed_at":"2015-08-29T19:15:20Z","body":"Just trying out PostCSS and right out the gate bumped into an issue im not sure why.\r\n\r\nWhenever I change the CSS file, with postcss-nested enabled, i get:\r\n```\r\n/Users/luismartins/Sites/LAB/postcss/node_modules/gulp-postcss/node_modules/postcss/lib/lazy-result.js:152\r\n        this.processing = new Promise(function (resolve, reject) {\r\n                              ^\r\nReferenceError: Promise is not defined\r\n    at LazyResult.async (/Users/luismartins/Sites/LAB/postcss/node_modules/gulp-postcss/node_modules/postcss/lib/lazy-result.js:152:31)\r\n    at LazyResult.then (/Users/luismartins/Sites/LAB/postcss/node_modules/gulp-postcss/node_modules/postcss/lib/lazy-result.js:75:21)\r\n    at Transform.stream._transform (/Users/luismartins/Sites/LAB/postcss/node_modules/gulp-postcss/index.js:45:8)\r\n    at Transform._read (_stream_transform.js:179:10)\r\n    at Transform._write (_stream_transform.js:167:12)\r\n    at doWrite (_stream_writable.js:226:10)\r\n    at writeOrBuffer (_stream_writable.js:216:5)\r\n    at Transform.Writable.write (_stream_writable.js:183:11)\r\n    at write (/Users/luismartins/Sites/LAB/postcss/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:623:24)\r\n    at flow (/Users/luismartins/Sites/LAB/postcss/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:632:7)\r\n```\r\nMy `gulpfile.js` is pretty vanilla atm:\r\n\r\n```js\r\nvar gulp = require('gulp');\r\nvar nestedcss = require('postcss-nested');\r\n    // browserSync = require('browser-sync'),\r\n    // reload      = browserSync.reload;\r\n\r\n\r\ngulp.task('css', function () {\r\n    var postcss = require('gulp-postcss');\r\n    var processors = [\r\n        nestedcss\r\n    ];\r\n    return gulp.src('src/**/*.css')\r\n        .pipe( postcss( processors ) )\r\n        .pipe( gulp.dest('build/') );\r\n});\r\n\r\n\r\n\r\n// Watch\r\ngulp.task('default', function() {\r\n\r\n    gulp.watch('src/**/*.css', ['css']);\r\n\r\n});\r\n```\r\n\r\nThe css file only has a standard css declaration in it.\r\n\r\nAny tips?"},"comment":{"url":"https://api.github.com/repos/postcss/postcss-nested/issues/comments/180437950","html_url":"https://github.com/postcss/postcss-nested/issues/30#issuecomment-180437950","issue_url":"https://api.github.com/repos/postcss/postcss-nested/issues/30","id":180437950,"user":{"login":"TrySound","id":5635476,"avatar_url":"https://avatars.githubusercontent.com/u/5635476?v=3","gravatar_id":"","url":"https://api.github.com/users/TrySound","html_url":"https://github.com/TrySound","followers_url":"https://api.github.com/users/TrySound/followers","following_url":"https://api.github.com/users/TrySound/following{/other_user}","gists_url":"https://api.github.com/users/TrySound/gists{/gist_id}","starred_url":"https://api.github.com/users/TrySound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrySound/subscriptions","organizations_url":"https://api.github.com/users/TrySound/orgs","repos_url":"https://api.github.com/users/TrySound/repos","events_url":"https://api.github.com/users/TrySound/events{/privacy}","received_events_url":"https://api.github.com/users/TrySound/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T16:53:56Z","updated_at":"2016-02-05T16:53:56Z","body":"@Gillala Are you sure you use node5? Run please `node -v`"}}