Skip to content
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

Error in stream.js:94 #6

Closed
bhappyz opened this issue Apr 20, 2014 · 2 comments
Closed

Error in stream.js:94 #6

bhappyz opened this issue Apr 20, 2014 · 2 comments

Comments

@bhappyz
Copy link

bhappyz commented Apr 20, 2014

Hi,

I am trying to use this plugin but I am having two issues, it complains about clone not being defined.

Given this

var gulp = require('gulp');
var concatCss = require('gulp-concat-css');

var cloneSink = clone();

gulp.task('default', function () {
  gulp.src('css/*.css')
    .pipe(concatCss("output/bundle.css"))
    .pipe(gulp.dest('output/'));
});

I get this error

var cloneSink = clone();
                ^
ReferenceError: clone is not defined
    at Object.<anonymous> (/home/xxxx/projects/xxxxgulpfile.js:13:17)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Liftoff.handleArguments (/usr/local/lib/node_modules/gulp/bin/gulp.js:62:18)
    at Liftoff.launch (/usr/local/lib/node_modules/gulp/node_modules/liftoff/index.js:144:6)
    at Object.<anonymous> (/usr/local/lib/node_modules/gulp/bin/gulp.js:25:5)

Tried removing that line and this is what I get

stream.js:94
      throw er; // Unhandled stream error in pipe.
            ^
Error: property missing ':' near line 665:4
    at error (/home/bhappy/projects/just-rentals/node_modules/gulp-concat-css/node_modules/rework/node_modules/css/node_modules/css-parse/index.js:57:15)
    at declaration (/home/bhappy/projects/just-rentals/node_modules/gulp-concat-css/node_modules/rework/node_modules/css/node_modules/css-parse/index.js:189:33)
    at declarations (/home/bhappy/projects/just-rentals/node_modules/gulp-concat-css/node_modules/rework/node_modules/css/node_modules/css-parse/index.js:219:19)
    at rule (/home/bhappy/projects/just-rentals/node_modules/gulp-concat-css/node_modules/rework/node_modules/css/node_modules/css-parse/index.js:481:21)
    at rules (/home/bhappy/projects/just-rentals/node_modules/gulp-concat-css/node_modules/rework/node_modules/css/node_modules/css-parse/index.js:103:56)
    at stylesheet (/home/bhappy/projects/just-rentals/node_modules/gulp-concat-css/node_modules/rework/node_modules/css/node_modules/css-parse/index.js:73:16)
    at Object.module.exports [as parse] (/home/bhappy/projects/just-rentals/node_modules/gulp-concat-css/node_modules/rework/node_modules/css/node_modules/css-parse/index.js:485:10)
    at rework (/home/bhappy/projects/just-rentals/node_modules/gulp-concat-css/node_modules/rework/lib/rework.js:41:25)
    at Transform.through.obj.gutil.File.base [as _transform] (/home/bhappy/projects/just-rentals/node_modules/gulp-concat-css/index.js:26:26)
    at Transform._read (/home/bhappy/projects/just-rentals/node_modules/gulp-concat-css/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:184:10)

Thanks for the help in advance

@mariocasciaro
Copy link
Owner

Hi Ahmad,
the line

var cloneSink = clone();

is actually a typo, it's not required at all to run gulp-concat-css. I'll update the README, thanks for reporting.

For the second error it looks like there is a syntax error in one of your CSS files. Looking from the stack trace it doesn't give you too much details. I'll see what I can do to improve the error reporting for these situations.

@mariocasciaro
Copy link
Owner

Closing this, created a new work item for the error reporting feature: #7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants