Property 'set' does not exist on type 'Storage'


#1

When I use storage.get method I get this error:

[ts] Property ‘set’ does not exist on type ‘Storage’.

I’m using Ionic 2.1.1 and added Storage to the providers in app.modules and injected it in the constructor fo my module.


#2

It was lacking a import og the storage class in my module.