Having an 'SyntaxError: Unexpected token 'export' Issue with my Electron-Ionic Application

Issue //Having this issue and I don’t know how to solve it: Uncaught C:\Users\Zac\ionic_projects\robot-backup-4\node_modules\@ionic\core\components\index.js:4 export { setAssetPath, setPlatformOptions } from ‘@stencil/core/internal/client’; ^^^^^^ SyntaxError: Unexpected token ‘export’ at new Script (vm.js:101:7) at createScript (vm.js:262:10) at Object.runInThisContext (vm.js:310:10) at wrapSafe (internal/modules/cjs/loader.js:979:15) at

Continue reading

Huawei HMS maps not working on Ionic Capacitor runtime

Issue I have followed this guide to add Huawei HMS maps to my IONIC capacitor runtime app. https://github.com/HMS-Core/hms-cordova-plugin/tree/master/cordova-plugin-hms-map/example/ionic This app has google-services.json and huawei agconnect-services.json. In project build.gradle I’m using […] classpath ‘com.huawei.agconnect:agcp:1.5.2.300’ capacitor.build.gradle dependencies { […] implementation "com.huawei.hms:base:5.2.0.300" implementation

Continue reading

Huawei HMS maps not working on Ionic Capacitor runtime

Issue I have followed this guide to add Huawei HMS maps to my IONIC capacitor runtime app. https://github.com/HMS-Core/hms-cordova-plugin/tree/master/cordova-plugin-hms-map/example/ionic This app has google-services.json and huawei agconnect-services.json. In project build.gradle I’m using […] classpath ‘com.huawei.agconnect:agcp:1.5.2.300’ capacitor.build.gradle dependencies { […] implementation "com.huawei.hms:base:5.2.0.300" implementation

Continue reading

Ionic 5 Cordova Plugin EmailComposer NullInjectorError

Issue I’m doing an App using Ionic 5 and Capacitor. package.json "dependencies": { "@angular/common": "~9.1.6", "@angular/core": "~9.1.6", "@angular/fire": "^6.0.2", "@angular/forms": "~9.1.6", "@angular/platform-browser": "~9.1.6", "@angular/platform-browser-dynamic": "~9.1.6", "@angular/router": "~9.1.6", "@capacitor/android": "^2.4.0", "@capacitor/core": "^2.4.0", "@capacitor/ios": "^2.4.0", "@ionic-native/core": "^5.27.0", "@ionic-native/email-composer": "^5.28.0", "@ionic/angular": "^5.2.3", "cordova-plugin-email-composer":

Continue reading

Angular 11, Ionic 5 , Capacitor 2 gradle sync error "Caused by: org.gradle.api.resources.MissingResourceException"

Issue I am getting the following error on npx cap open android Caused by: org.gradle.api.resources.MissingResourceException: Could not read script ‘/Users/adk/Documents/projectA/node_modules/cordova-androidx-build/src/android/cordova-androidx-build.gradle’ as it does not exist. I have cordova-androidx-build installed and cordova-androidx-build.gradle file is present in node_modules of my project. The

Continue reading

google social login not working in ionic capacitor using codetrix-studio capacitor-google-auth

Issue in the capacitor.config.json "GoogleAuth": { "scopes": ["profile","email"], "serverClientId": "KEY.apps.googleusercontent.com" } in index.html <meta name="google-signin-client_id" content="KEY.apps.googleusercontent.com"> in android folder string.xml file <string name="server_client_id">KEY.apps.googleusercontent.com</string> and in our page .ts file to get detail of google user detail const user = await

Continue reading

After Update androidx.appcompat:appcompat:1.4.0-beta01 build failed

Issue From 29th September 2021 , i got this error when i build my ionic capacitor app The minCompileSdk (31) specified in a dependency’s AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties) is greater than this module’s compileSdkVersion (android-30). Dependency: androidx.appcompat:appcompat:1.4.0-beta01. AAR metadata file: C:\Users\username\.gradle\caches\transforms-2\files-2.1\fc809b477a0dcde256a643199c214be5\appcompat-1.4.0-beta01\META-INF\com\android\build\gradle\aar-metadata.properties.

Continue reading