DEV Community

loading...

Discussion on: Getting started with Electron and Svelte

Collapse
kim_aldis_c07221016192e2a profile image
Kim Aldis

Very clear and easy to follow, Johannes. Thank you.

One problem, everything behaves as it should but I'm getting a blank app when I run npm run electron-dev. I appreciate this is a bit vague but I've checked everything and it seems sound. Any thoughts?
K.

Collapse
kim_aldis_c07221016192e2a profile image
Kim Aldis • Edited

Couple of things: If I run npm run electron-dev, I get a blank window with Svelt.app title in the top bar. If I open localhost:5000 in a browser after running electron-dev I get the Hello World! page.

Collapse
kim_aldis_c07221016192e2a profile image
Kim Aldis

Got it:

index.html, each path shouldn't start with a '/'

<link rel='stylesheet' href='/global.css'>
<link rel='stylesheet' href='/build/bundle.css'>
<script defer src='/build/bundle.js'></script>
Enter fullscreen mode Exit fullscreen mode