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.

Entry point is invalid and release version is not working (Windows 11)

See original GitHub issue

Issue 1: The entry point is “dist-electron/main/index.js” but should be “dist-electron/electron/main/index.js” i guess? issue1

Issue 2: Once I change the entry point I can start the application in development mode but the release version which I created with yarn build won’t start. It shows the following error message:

(node:24752) electron: Failed to load URL: file:///D:/electron-vite-react/release/2.1.0/win-unpacked/resources/app.asar/dist-electron/dist/index.html with error: ERR_FILE_NOT_FOUND
(Use `YourAppName --trace-warnings ...` to show where the warning was created)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
caoxiemeihaocommented, Oct 18, 2022

dist-electron/electron/main/index.js is correct.

- process.env.DIST_ELECTRON = join(__dirname, '..')
+ process.env.DIST_ELECTRON = join(__dirname, '../..')
0reactions
caoxiemeihaocommented, Dec 23, 2022

@juandl Is this caused ba upgrading the vite-plugin-electron version?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Fix 'entry point not found' errors in Windows
There are a couple of ways to address 'entry point not found' errors in Windows. You can manually locate and install the DLL...
Read more >
Resolved issues in Windows 11, version 21H2
In this article. Resolved issues; Issue details. See a list of known issues that have been resolved for Windows 11, version 21H2 over...
Read more >
Missing Macro error after Rename - The Entry point is invalid.
1. when I exported a workflow package *.yxzp (with macro) to the Windows Download Folder, then Alteryx later notified the macro was missing,....
Read more >
Docker Compose release notes
2022-11-23 ... Updated Docker Engine API to apply fix of CVE-2022-39253. ... Fixes compose#9014; Cleared service CMD when entry point is overridden.
Read more >
Citrix Workspace app for Windows
This release addresses issues that help to improve overall performance, ... points. Starting from Citrix Workspace app 2010 for Windows, ...
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