Workshape / icon-font-generator

Easy-to-use, pre-configured cli tool to generate webfont icon kits from a bunch of .svg files
MIT License
471 stars 76 forks source link

UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'deps' of undefined #77

Open apandrade opened 4 years ago

apandrade commented 4 years ago

This happens when I'm passing the --type parameter

Command icon-font-generator .\front-end\svgicons\*.svg -o .\front-end\src\styles\icons -n conecta-icons -j false --html false --selector .icon --fontspath .\fonts --csspath .\front-end\src\styles\icons\_conecta-icons.scss --types 'woff, woff2, eot, ttf'

Exception (node:120052) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'deps' of undefined at makeGenTask (%homedrive%%homedirectory%\AppData\Roaming\nvm\v10.17.0\node_modules\icon-font-generator\node_modules\webfonts-generator\src\generateFonts.js:111:29 at generateFonts (%homedrive%%homedirectory%\AppData\Roaming\nvm\v10.17.0\node_modules\icon-font-generator\node_modules\webfonts-generator\src\generateFonts.js:123:3 at webfont (%homedrive%%homedirectory%\AppData\Roaming\nvm\v10.17.0\node_modules\icon-font-generator\node_modules\webfonts-generator\src\index.js:98:2 at Promise (internal/util.js:274:30 at new Promise (<anonymous> at webfont (internal/util.js:273:12 at Object.generate (%homedrive%%homedirectory%\AppData\Roaming\nvm\v10.17.0\node_modules\icon-font-generator\lib\index.js:45:33) (node:120052) 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:120052) [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.