-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npx cap sync @capacitor-community/electron with Ionic7 Vite React or Vue Apps #262
Comments
ive spent the day debugging this and i cant figure it out either? |
found the issue CHATGPT reply: Now, if the Here's an example to illustrate the issue: Consider the following {
"name": "example-module",
"main": "./lib/index.js"
} If you use To avoid this issue, it's recommended to specify the {
"name": "example-module",
"main": "lib/index.js"
} This way, If you provide more details about your specific use case or share some code snippets, I might be able to provide more targeted assistance. |
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):
Smartphone (please complete the following information):
Additional context
Node.js v18.17.1
The text was updated successfully, but these errors were encountered: