Arjun T Raj
Arjun T Raj

Reputation: 3207

ionic storage module giving OpaqueToken error with angular 5

I have updated my ionic project to angular 5 and i got the below error with many ionic native plugins..

angular/core/core"' has no exported member 'OpaqueToken

Resolved all of the issues after updating to the latest version , except for ionic-storage. Still its giving this error

node_modules/@ionic/storage/es2015/storage.d.ts import { OpaqueToken } from '@angular/core';

node_modules/@angular/core/core"' has no exported member 'OpaqueToken'.

We can see one open issue @github (142) but no fix or workaround found.

Upvotes: 2

Views: 2412

Answers (1)

Ntokozo Zwane
Ntokozo Zwane

Reputation: 1742

You can solve this issue by upgrading @ionic/storage to version 2.1.2 or higher.

Update (context):

OpaqueToken was removed in Angular v5 (it's been deprecated since Angular v4). The corresponding change in the @ionic/storage package was done in this change as part of the 2.1.2 update.

Upvotes: 4

Related Questions