Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Update vinyl as gulp-watch causes issues when the latest vinyl-fs #295

@asgoth

Description

@asgoth

Since updating to vinyl-fs version 3.x, I'm getting the error file.isSymbolic is not a function.

After some investigation, it seems to be caused by an outdated vinyl version in gulp-watch. Could you please update vinyl to 2.1.0?

For now, i'm using a workaround:

/**
 * gulp-watch uses an outdated vinyl, which doesn't have some functions which vinyl-fs expects.
 * Can be removed when gulp-watch updates it to vinyl 2.x.
 * @returns {NodeJS.ReadWriteStream}
 */
function upgradeVinylFile(): NodeJS.ReadWriteStream {
  return through.obj(function(file: any, encoding: string, cb: through.TransformCallback): void {
    const upgradedFile = new File(file);
    cb(null, upgradedFile);
  });
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions