Description
Describe the bug
When running npx cap sync @capacitor-community/electron on a Ionic7 Vite React or Vue App i got the following message:
To Reproduce
Steps to reproduce the behavior:
1 ionic start ionic7-react-sqlite-app blank --type=react --capacitor
2 cd ./ionic7-react-sqlite-app
3 npm i --save @capacitor-community/electron
4. npm i --save @capacitor-community/sqlite
5. npm i --save-dev rimraf @testing-library/user-event
6. npm run build
7. npx cap add @capacitor-community/electron
8. npx cap sync @capacitor-community/electron
Expected behavior
Not to see these 4 messages
Unable to find node_modules/@testing-library/user-event.
Are you sure @testing-library/user-event is installed?
Unable to find node_modules/@vitejs/plugin-legacy.
Are you sure @vitejs/plugin-legacy is installed?
Unable to find node_modules/@vitejs/plugin-react.
Are you sure @vitejs/plugin-react is installed?
Unable to find node_modules/rimraf.
Screenshots
see the error
npx cap sync @capacitor-community/electron
ℹ Copying Web App to Electron platform: start 🚀
ℹ Copying Web App to Electron platform: Copying /Volumes/Development_Lacie/Development/blog/Tutorials-Apps/Part-2/ionic7-vue-sqlite-app/dist into /Volumes/Development_Lacie/Development/blog/Tutorials-Apps/Part-2/ionic7-vue-sqlite-app/electron/app
✔ Copying Web App to Electron platform: completed in 65.85ms
ℹ Updating Electron plugins: start 🚀
⠋ Updating Electron plugins: searching for plugins
Unable to find node_modules/@vitejs/plugin-legacy.
Are you sure @vitejs/plugin-legacy is installed?
Unable to find node_modules/@vitejs/plugin-vue.
Are you sure @vitejs/plugin-vue is installed?
Unable to find node_modules/rimraf.
Are you sure rimraf is installed?
ℹ Updating Electron plugins: searching for plugins
ℹ Updating Electron plugins: generating electron-plugins.js
⠋ Updating Electron plugins: installing electron plugin files
Will install: @capacitor-community/[email protected]
ℹ Updating Electron plugins: installing electron plugin files
✔ Updating Electron plugins: completed in 5.66s
Desktop (please complete the following information):
- OS: [e.g. iOS] macOS Monterey Version 12.6.8
- Browser [e.g. chrome, safari] Chrome
- Version [e.g. 22] Version 116.0.5845.140 (Build officiel) (x86_64)
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context
Node.js v18.17.1