F7 cordova electron failed to start

created a fresh project of f7 cordova electron react and when i run command ‘npm run cordova-electron’
it fails to render the page and error in console is :

“Failed to load module script: The server responded with a non-JavaScript MIME type of “”. Strict MIME type checking is enforced for module scripts per HTML spec.”

Yep, seems electron currently doesn’t support ES modules (generated by Vite), install previous version of CLI and create a Webpack project if you target Electron.

I am still looking for a solution with Electron support in Vite projects

1 Like

thanks, can you tell me the last cli version that comes with webpack ?

All versions before 5

1 Like

tested with framework7-cli version 4.1.0 and 4.0.8
project installer failed with error saying that “Framework7Icons-Regular.eot” not found
then i skipped this error and in project directory i tried to start the project with command “npm run cordova-electron” but failed again with error : “could not import es module”