w0rm / gulp-svgstore

Combine svg files into one with symbol elements
https://www.npmjs.com/package/gulp-svgstore
645 stars 33 forks source link

UnhandledPromiseRejectionWarning when more than one SVG in the source directory #95

Closed robmaurizi closed 5 years ago

robmaurizi commented 5 years ago

Using the gulp script from the readme, I'm getting UnhandledPromiseRejectionWarning error when more than one SVG is in the source directory.

17:18:08] Starting 'svgstore'... (node:58326) UnhandledPromiseRejectionWarning (node:58326) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) (node:58326) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Using Node v. 8.12.0 on MacOS 10.13.6

robmaurizi commented 5 years ago

Looks like it was SVGO required by svgmin.. I rolled my req's back to a prev. version and that seemed to take care of it.