alexgorbatchev / gulp-print

This is a very basic gulp plugin that prints names of files.
MIT License
31 stars 11 forks source link

TypeError: format is not a function #28

Closed mkormendy closed 6 years ago

mkormendy commented 6 years ago

Working with:

at mapFile (/path-to-project-using-gulp/node_modules/gulp-print/gulp-print.js:18:27)
    at wrappedMapper (/path-to-project-using-gulp/node_modules/map-stream/index.js:83:19)
    at Stream.stream.write (/path-to-project-using-gulp/node_modules/map-stream/index.js:95:21)
    at Stream.ondata (internal/streams/legacy.js:15:31)
    at Stream.emit (events.js:180:13)
    at Stream.emit (domain.js:439:23)
    at queueData (/path-to-project-using-gulp/node_modules/event-stream/node_modules/map-stream/index.js:43:21)
    at next (/path-to-project-using-gulp/node_modules/event-stream/node_modules/map-stream/index.js:71:7)
    at /path-to-project-using-gulp/node_modules/event-stream/node_modules/map-stream/index.js:85:7
    at /path-to-project-using-gulp/node_modules/gulp-livereload/index.js:45:5

Hates this line:

const formatted = format(filepath);
mkormendy commented 6 years ago

There was an error with the way it was called in my code.