WordPress LMS for Web and mobile Forums App Support Issues with Image Caching when Building the app

Issues with Image Caching when Building the app

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #42073

    Aminericher
    Participant

    When I try to run this command : ionic cordova build android –prod, I get this errors:
    [14:47:35] typescript: C:/Users/x/Documents/ionic/app/src/services/imageCache.ts, line: 84
    Expected 0 arguments, but got 1.

    L83: private getCachedFileURL(src: string): Observable<string> {
    L84: return bindCallback<string, string[]>(ImgCache.getCachedFileURL)(src)
    L85: .pipe(

    [14:47:35] typescript: C:/Users/x/Documents/ionic/app/src/services/imageCache.ts, line: 95
    Expected 0 arguments, but got 1.

    L94: private cacheFile(src: string): Observable<string> {
    L95: return bindCallback<string, string>(ImgCache.cacheFile)(src);

    [14:47:35] typescript: C:/Users/x/Documents/ionic/app/src/services/imageCache.ts, line: 103
    Expected 0 arguments, but got 1.

    L102: private isCached(src: string): Observable<[string, boolean]> {
    L103: return bindCallback<string, [string, boolean]>(ImgCache.isCached)(src);

    I have replaced imageCache.ts in your src/services with the given ” imageCache.ts ” provided on this link : https://bit.ly/2KyOdJ4  but nothing change.
    Any help?

    #42098

    Harry
    Spectator

    Hello

    Uninstall the existing rxjs with this command: npm uninstall rxjs

    After uninstallation of rxjs install this version

    npm install [email protected]

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.