onmyway133 / IconGenerator

🍱 A macOS app to generate app icons
https://onmyway133.com/
Other
1.41k stars 83 forks source link

White window in MacOS Mojave #11

Closed stevecohenfr closed 5 years ago

stevecohenfr commented 5 years ago

Hi,

I have a white window when launching in MacOS Mojave ;)

steve@MBP-de-Steve-2:~/Projects/electron/IconGenerator$ npm start

> IconGenerator@1.2.0 start /Users/steve/Projects/electron/IconGenerator
> npm run babel && electron .

> IconGenerator@1.2.0 babel /Users/steve/Projects/electron/IconGenerator
> babel ./src --out-dir ./dist --copy-files

src/components/Application.js -> dist/components/Application.js
src/components/InputComponent.js -> dist/components/InputComponent.js
src/library/Generator.js -> dist/library/Generator.js
src/main.js -> dist/main.js
src/renderer.js -> dist/renderer.js

Screenshot

Best,

stevecohenfr commented 5 years ago

But it works fine using your release :)

onmyway133 commented 5 years ago

@stevecohenfr Hi, so is it OK now ?

stevecohenfr commented 5 years ago

@onmyway133 Yes it is, but just for curiosity, why do I have a white window when starting the program from sources ? Any idea ?

onmyway133 commented 5 years ago

@stevecohenfr I think maybe you have a different node or tools version than mine? If you can open the debug console, you can see what's wrong there

stevecohenfr commented 5 years ago

Ok, it's the first time I use electron but it looks good ! Here was the error :

Uncaught Error: The module '/Users/steve/Projects/electron/IconGenerator/node_modules/sharp/build/Release/sharp.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 67. This version of Node.js requires
NODE_MODULE_VERSION 57.

I use node 11.2, I think i need to downgrade, I will try later using nvm. Thanks for your time, you made me want to start a project using electron :)

onmyway133 commented 5 years ago

@stevecohenfr I use nodenv, rubenv, pythenv. Didn't have good experience with nvm or rvm