I have to run electron index.html to resolve this issue.
// Add "electron ." in your start "scripts": { "start": "electron ." },