Failed to load resource: net::ERR_FILE_NOT_FOUND
Bug Report
Using the Framework7 CLI to run "framework7 cordova build electron" from the command line, it successfully creates the EXE however it fails to load.
Problem
There is a broken link where the logo would be and instead the web inspector appears and the following error is in the console: Failed to load resource: net::ERR_FILE_NOT_FOUND logo1.png
What is expected to happen?
The EXE to load without any errors.
What does actually happen?
Error as described above
Information
This is my first Electron application that was created via the Framework7 CLI. This is the out of the box sample that I am trying with.
Command or Code
framework7 create --ui framework7 cordova build electron
Environment, Platform, Device
PC - Windows 10 64 Bit
Version information
Cordova: 9.0.0 ([email protected]) Other Frameworks: Framework7 3.0.5 Windows 10 64 Bit
Checklist
- [X] I searched for existing GitHub issues
- [X] I updated all Cordova tooling to most recent version
- [X] I included all the necessary information above
I noticed a problem with electron if your image path is relative using a forward slash such as '/assets/img/image.png' For electron, just remove the forward slash.
If this is not your case, you could try using cordova 10. Also make sure the image your link to is included in your 'www' folder