Hey guys. Is it possible to create an application using Capacitor version 5? When I execute the command to create (start), ionic always creates it with the latest version of the capacitor (version 6). For community plugins reasons, I need it to be in version 5 of the capacitor.
remove ios and android folders if you added the platforms, install latest 5.x version of capacitor cli/core/ios/android, run npx cap add ios
and npx cap add android
What I did was the following:
ionic start sqlApp blank --type angular
cd ./sqlApp
# Install Capacitor plugins
npm i @capacitor/splash-screen
npm i @capacitor-community/sqlite
# Add Angular service
ionic g service services/database
# Build the native app
ionic build
After that i follow this link:
Then in the package-lock.json:
"peerDependencies": {
"@capacitor/core": "^5.0.0 || ^6.0.0"
},
Finally:
ionic cap add ios
ionic cap add android
Works until now!
The sqlite capacitor plugin does not yet support capacitor version 6.