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?