Skip to content

Node V6 error - 'Path must be a string. Received undefined' #192

@Gobd

Description

@Gobd

Receiving error 'Path must be a string. Received undefined' when running with Node V6. This Gulp task worked fine with Node V5.11.0. Using gulp-sourcemaps v2.0.0-alpha

gulp.task('stylus', function () {
     return gulp.src('src/**/*.styl')
        .pipe(flatten())
        .pipe(sourcemaps.init())
        .pipe(stylus({use: rupture()}))
        .pipe(plumber())
        .pipe(uncss({html: ['src/**/*.html']}))
        .pipe(cleanCSS())
        .pipe(postcss(processors))
        .pipe(concat('css.min.css'))
        .pipe(sourcemaps.write('/maps'))
        .pipe(gulp.dest('./dist/css'))
        .pipe(reload({stream: true, match: '**/*.css'}));
});

Task works fine when I comment out both sourcemap lines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions