Reply To: Lastest WPLMS App >> TS error with "ionic serve" in /services/imageCache.ts

Back to course
#13686

Peter O.
Participant
Hi Alex,  I followed your instructions. After running: 
cordova plugin rm cordova-plugin-file
I got this error message:
(node:9328) UnhandledPromiseRejectionWarning: CordovaError: The plugin 'cordova-plugin-file' is required by (cordova-plugin-file-transfer), skipping uninstallation. (try --force if trying to update)
So, I then ran this:
cordova plugin rm cordova-plugin-file --force cordova plugin add [email protected] npm install @ionic-native/[email protected] cordova clean cordova plugin save cordova prepare
Next some progress as I was able to successfully execute: 
ionic serve
The "ionic serve" completed without error. I was able to view the app in my Chrome browser.  So, then I ran:
ionic cordova build android
This  build failed with the following messages:
[23:55:26]  lint finished in 10.81 s :app:preDebugBuild FAILED FAILURE: Build failed with an exception. * What went wrong: Could not resolve all files for configuration ':app:debugCompileClasspath'. > Could not find play-services-auth-base-license.aar (com.google.android.gms:play-services-auth-base-license:11.8.0). Searched in the following locations: https://jcenter.bintray.com/com/google/android/gms/play-services-auth-base-license/11.8.0/play-services-auth-base-license-11.8.0.aar 11 actionable tasks: 11 executed * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. * Get more help at https://help.gradle.org BUILD FAILED in 12s (node:4576) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception. * What went wrong: Could not resolve all files for configuration ':app:debugCompileClasspath'. > Could not find play-services-auth-base-license.aar (com.google.android.gms:play-services-auth-base-license:11.8.0). Searched in the following locations: https://jcenter.bintray.com/com/google/android/gms/play-services-auth-base-license/11.8.0/play-services-auth-base-license-11.8.0.aar * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. * Get more help at https://help.gradle.org BUILD FAILED in 12s at ChildProcess.whenDone (D:\-\DevMobi\wplms\q3\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23) at emitTwo (events.js:126:13) at ChildProcess.emit (events.js:214:7) at maybeClose (internal/child_process.js:925:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5) (node:4576) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:4576) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Hope you can provide further help on this. Thank you.      
Copyright VibeThemes.