After installing & importing @hmscore/cordova-plugin-hms-push in a clean Ionic project using Capacitor, Vue.js and Vite, I get this error when trying to run the project for dev:
✘ [ERROR] Could not resolve "cordova"
node_modules/@hmscore/cordova-plugin-hms-push/www/utils.js:19:26:
19 │ const cordova_1 = require("cordova");
╵ ~~~~~~~~~
You can mark the path "cordova" as external to exclude it from the bundle, which will remove this
error and leave the unresolved path in the bundle. You can also surround this "require" call with
a try/catch block to handle this failure at run-time instead of bundle-time.
After installing & importing
@hmscore/cordova-plugin-hms-push
in a clean Ionic project using Capacitor, Vue.js and Vite, I get this error when trying to run the project for dev:Environment