Promise Rejection on Mac Icon Generation
See original GitHub issueIssue: When running icon maker on an image, a promise error is given when it starts to generate the Mac icons
OS: OSX 10.12.5 Electron-Icon-Maker: 0.0.3 Node.js: 7.7.2 & 8.1.3
running with:
$ electron-icon-maker -i assets/icon.png -o build/
NOTE: I did use the input and output flags as well, with the same results (thinking it was the process.args array)
It creates all of the png images without an issue, and then shoots this error out:
Icon generetor from PNG:
src: /Users/dbrown/Development/hue/build/icons/png
dir: /Users/dbrown/Development/hue/build/icons/mac
(node:77373) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2)
: Error: TypeError: Cannot read property '[object Array]' of undefined
(node:77373) 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.
btw, in this line “Icon generetor from PNG”, do you mean generated?
Thanks for this module!
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Unhandled Promise Rejection Error: Call .startRecording() #596
When I click the menubar icon to stop the recording, I get the identical error posted by @abranhe. I do not get given...
Read more >List Of Mac OS X Error Codes - Krypted
You may use these error codes to communicate an exception through an API that only supports OSStatus error codes. Mac OS APIs will...
Read more >Safari Technology Preview Release Notes - Apple Developer
Many of the new Safari 16 features are now available in Safari Technology Preview 147: Live Text. Select and interact with text in...
Read more >Installing the Alert Agent for Mac - Lightspeed Customer Portal
Lightspeed strongly encourages users to generate and deploy certificates with ... Download the Alert Agent for Mac PKG file by clicking the download...
Read more >React Native: Possible unhandled promise rejection
I think problem is in your url request. Not in react naitve any where. Try opening api url in simulator safari to make...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thank you for your pull request @3DEsprit . Sorry it took me some time to merge it. I have not worked on this project in a while. It has been merged and I updated the NPM repo.
Think thats an issue with
icon-gen. There is ansizesoptions that used too have a default value. But this is never set when you require this module.https://github.com/akabekobeko/npm-icon-gen/blob/master/src/lib/index.js#L23
so it crashes here.
https://github.com/akabekobeko/npm-icon-gen/blob/master/src/lib/icon-generator.js#L71