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

Default app doesn't work correctly on Windows 8.1? #67

Closed
gbmhunter opened this issue Oct 27, 2015 · 4 comments
Closed

Default app doesn't work correctly on Windows 8.1? #67

gbmhunter opened this issue Oct 27, 2015 · 4 comments

Comments

@gbmhunter
Copy link

npm install and npm run hot-server work fine, but npm run start-hot gives me the following error:

image

@gbmhunter
Copy link
Author

Note that putting electron . at the start of the start-hot script fixes this error, but then electron loads up an empty screen (I believe it is meant to show a home page?).

@catalinmiron
Copy link
Contributor

@gbmhunter can you do the following:

set HOT=1 & NODE_ENV=development electron .

or

set HOT=1 & NODE_ENV=development & electron .

or if this is not working for you, a quick win is to modify this with

if (process.env.NODE_ENV === 'development') {
  mainWindow.loadUrl('file://' + __dirname + '/app/hot-dev-app.html');
} else {
  mainWindow.loadUrl('file://' + __dirname + '/app/app.html');
}

and run set NODE_ENV=development electron .

In this way, the html file loading in main, when NODE_ENV=development is hot-dev-app.html

@gbmhunter
Copy link
Author

Thanks for the help.

I tweaked what you mentioned above and managed to get it working with:
start-hot": "set HOT=1 & set NODE_ENV=development & electron .

@catalinmiron
Copy link
Contributor

@gbmhunter great!

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

2 participants