You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I add "type": "module" to package.json on this project (plus minor import adjustments), my issue above gets fixed and VS Code doesn't complain anymore. Any reason both vite-plugin-electron and vite-plugin-electron-renderer don't include "type": "module" now Vite/Electron require it?
The text was updated successfully, but these errors were encountered:
When I switched to Electron 28+, I followed the instructions here and added
"type": "module"
to package.json on my project.Since then, my vite.config.ts is erroneous on VS Code due to the electron function call within the configuration:
When I build this project, I get a warning:
If I add
"type": "module"
to package.json on this project (plus minor import adjustments), my issue above gets fixed and VS Code doesn't complain anymore. Any reason both vite-plugin-electron and vite-plugin-electron-renderer don't include"type": "module"
now Vite/Electron require it?The text was updated successfully, but these errors were encountered: