-
-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReferenceError: Promise is not defined #30
Comments
@lmartins You can update node.js to 0.12 or install and call before all postcss requires require('es6-promise').polyfill(); |
Thank you for the ultra fast reply. Sent from my iPhone
|
I am having node version 0.10.13 but still it gives me the same error. |
@lmartins |
@lmartins @aniketnandan I strongly recommend to upgrade Node to v4.1.0 since v0.x is a really out-of-date version. |
Yup, I always forget to update node on my machines. Thanks. |
At least we should check if duplexer2 works correctly on the latest stable Node.
My gulpfile.js contains, I am using node version 5.5.0 `//--------------------------------------------------------- var gulp = require('gulp'), var webroot = './' + project.webroot + '/'; var paths = {
}; //--------------------------------------------------------- // CLEAN gulp.task('clean:js', function (cb) { gulp.task('clean:css', function (cb) { gulp.task('clean', ['clean:js', 'clean:css']); // CCS gulp.task('css:sass', function () { gulp.task('css:concat', ['css:sass'], function () { gulp.task('css:min', ['css:concat'], function () { // JS gulp.task('js:concat', ['js:libapp'], function () { gulp.task('js:min',['js:concat'], function () { gulp.task('min', ['css:min','js:min']); // Watches gulp.task('watch:js', function () { gulp.task('watch:all', ['watch:sass','watch:js']); // No default task as yet }); I am using node version 5.5.0. I am getting the Promise Library not installed error. So how do I put the first line in gulpfile.js , is it like below: |
@Gillala Which exactly error did you get? Show error log |
|
@Gillala Are you sure you use node5? Run please |
when I run command node -v I get v5.5.0 |
Having the same problem on node v.5.7 |
@kasparsklavins It's not postcss issue. Maybe some part of your code removed global Promise object. Try to add polyfill. |
It's ran using postcss-cli. |
Solved this by overriding postcss-cli/bin/postcss |
Just trying out PostCSS and right out the gate bumped into an issue im not sure why.
Whenever I change the CSS file, with postcss-nested enabled, i get:
My
gulpfile.js
is pretty vanilla atm:The css file only has a standard css declaration in it.
Any tips?
The text was updated successfully, but these errors were encountered: