Skip to content

this.clearCache() is not found #70

@alexandruantonica

Description

@alexandruantonica

Platform: iOS only

JavaScript error:
file:///node_modules/nativescript-web-image-cache/web-image-cache.js:117:0: JS ERROR TypeError: undefined is not an object (evaluating 'this.clearCache')
(CoreFoundation) *** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: TypeError: undefined is not an object (evaluating 'this.clearCache')
at
setCacheLimit(file:///node_modules/nativescript-web-image-cache/web-image-cache.js:117:0)
at ./app/app.component.ts(file:///src/app/app.component.ts:10:14)

The problems seem to be on the iOS plugin's file (here). I guess it is clearCache instead of this.clearCache().
In Android everything is alright but probably because there is a clearCache function but never used (see this)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions