Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
apandrade opened this issue May 28, 2020 · 0 comments

Comments

@apandrade
Copy link

apandrade commented May 28, 2020

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.

@apandrade apandrade changed the title UnhandledPromiseRejectionWarning when passing --types parameter UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'deps' of undefined May 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant