question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dont work with gulp4

See original GitHub issue

Dont work gulp.spritesmith in gulp4.

About in gulp 3 its ok g gulp.spritesmith version - 6.7.0

TypeError: file.pipe is not a function
    at loadPixels (D:\Projects\Web\PROJ\local\.dev\node_modules\pixelsmith\lib\engine.js:40:16)
    at fn (D:\Projects\Web\PROJ\local\.dev\node_modules\pixelsmith\node_modules\async\lib\async.js:638:34)
    at Immediate.<anonymous> (D:\Projects\Web\PROJ\local\.dev\node_modules\pixelsmith\node_modules\async\lib\async.js:554:34)
    at runCallback (timers.js:672:20)
    at tryOnImmediate (timers.js:645:5)
    at processImmediate [as _immediateCallback] (timers.js:617:5)

Gulp task:


var spriteData = gulp.src(path.src.sprite)
    .pipe(spritesmith({
    imgName: '../img/sprite.png',
    cssName: 'sprite.less',
    padding: 20
}));

// Pipe image stream through image optimizer and onto disk
var imgStream = spriteData.img
// DEV: We must buffer our stream into a Buffer for `imagemin`
    .pipe(gulp.dest(path.build.img));

// Pipe CSS stream through CSS optimizer and onto disk
var cssStream = spriteData.css
    .pipe(gulp.dest('src/css/blocks/'));

// Return a merged stream to handle both `end` events
return merge(imgStream, cssStream);
});

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
twolfsoncommented, Jan 6, 2018

This has been resolved and released in 6.9.0

0reactions
twolfsoncommented, Jan 3, 2018

Cool, thanks for the heads up! I’ll re-open this issue. Please see https://github.com/twolfson/pixelsmith/issues/10 for ETA and resolution

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gulp 4 watch not working, only run one time - Stack Overflow
When I run gulp and save SCSS or HTML file it creates a new file successfully. If I save again nothing happens. It...
Read more >
gulp 4 file changes tracking with not working #2394 - GitHub
If the bug is in a plugin, open an issue on the plugin repository, not the gulp repository. If you're getting a deprecated...
Read more >
Fixing gulp-sass issues in gulp 4. - DEV Community ‍ ‍
Anyway, things finally worked out. But then, not everything worked out fine as "sass modules will not be processed" - Somehow, gulp failed...
Read more >
A quick guide for switching to gulp 4 | by Jhey Tompkins
A new version of gulp is here. What do you need to know? Will your gulpfile s break? There are various changes listed...
Read more >
How to Migrate to Gulp.js 4.0 - SitePoint
However, existing Gulp.js plugins should be compatible and most gulpfile.js ... Consider tasks which don't return the gulp streamed value.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found