question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Promise Rejection on Mac Icon Generation

See original GitHub issue

Issue: 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:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jaretburkettcommented, Oct 21, 2017

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.

2reactions
herrmannplatzcommented, Jul 17, 2017

Think thats an issue with icon-gen. There is an sizes options 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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found