I am currently developing a desktop application utilizing Python, JavaScript, HTML, and CSS. To connect Python to my application, I am using eel. Interestingly, everything works perfectly when I launch the desktop application through the Python terminal.
However, the issue arises when I try to launch the app through Electron via the command line:
$npm start
Although the desktop application loads up, it fails to execute any of the Python backend code. This is evident from the error displayed in the inspector:
Failed to load resource: net::ERR_FILE_NOT_FOUND eel.js:1
I have been troubleshooting for the past 8 hours but haven't been able to pinpoint the exact cause of this problem.
I understand that you might need more details to assist me effectively. I have already checked various factors such as the file structure (with __.py outside the web folder) and inserting
<script type="text/javascript" src="/eel.js"></script>
. Therefore, please specify what specific information you require in the comments below. I will update this question with any additional relevant details alongside the final solution for the benefit of others facing similar issues in the future.