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

Back to course
#13679

Peter O.
Participant
Hi Alex, Adding to my support request, here some more info.  I get the following error when I attempt to do:
ionic cordova build android
with a terminated build, and the following error:
... Installing "cordova-plugin-ionic-keyboard" for android Adding cordova-plugin-ionic-keyboard to package.json Saved plugin info for "cordova-plugin-ionic-keyboard" to config.xml --save flag or autosave detected Saving [email protected]~7.0.0 into config.xml file ... Running app-scripts build: --platform android --target cordova [19:14:03]  build dev started ... [19:14:03]  clean started ... [19:14:03]  clean finished in 6 ms [19:14:03]  copy started ... [19:14:04]  deeplinks started ... [19:14:04]  deeplinks finished in 510 ms [19:14:04]  transpile started ... [19:14:12]  typescript: D:/-/DevMobi/wplms/q3/src/services/imageCache.ts, line: 75 Property 'applicationStorageDirectory' does not exist on type 'File'. L74:  private normalizeURlWKWview(url: string) { L75:    const urlIos = ${normalizeURL(this.file.applicationStorageDirectory)}Library/files/${normalizeURL(url)}; L76:    return urlIos.replace('/localhost/persistent', ''); Error: Failed to transpile program at new BuildError (D:\-\DevMobi\wplms\q3\node_modules\@ionic\app-scripts\dist\util\errors.js:16:28) at D:\-\DevMobi\wplms\q3\node_modules\@ionic\app-scripts\dist\transpile.js:159:20 at new Promise (<anonymous>) at transpileWorker (D:\-\DevMobi\wplms\q3\node_modules\@ionic\app-scripts\dist\transpile.js:107:12) at Object.transpile (D:\-\DevMobi\wplms\q3\node_modules\@ionic\app-scripts\dist\transpile.js:64:12) at D:\-\DevMobi\wplms\q3\node_modules\@ionic\app-scripts\dist\build.js:109:82 at <anonymous> [19:14:12]  copy finished in 8.51 s
Thank you for your assistance. I hope we can get this fixed quickly. 
Copyright VibeThemes.