简体   繁体   中英

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.

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM