I import storage service in app.component.ts file then method already called of storage service shows Undefined error

I import storage service in app.component.ts file then method already called of storage service shows Undefined error