darkarena1 / angular-persistence

An Angular 2 - 4 compatible persistence layer supporting Memory, Session Storage and Local Storage persistence layers. Supports timeout, expiration, single use, and Rx.
MIT License
27 stars 18 forks source link

import { Observable } from 'rxjs' creating issue during build on angular 5 #15

Open Bipinvekariya442 opened 6 years ago

Bipinvekariya442 commented 6 years ago

import { Observable } from 'rxjs/Rx'; should be import { Observable } from 'rxjs/Observable'

Could you please fix this and commit. that will help when anybody uses angular-persistence.

Thanks in advance.

Regards, Bipin

littlemissbot commented 5 years ago

ERROR in node_modules/angular-persistence/src/abstracts/persistence.cache.d.ts(1,10): error TS2305: Module '"/Users/connect2samita/Projects/pupilpod-parent/node_modules/rxjs/Rx"' has no exported member 'Observable'. node_modules/rxjs/Rx.d.ts(1,15): error TS2307: Cannot find module 'rxjs-compat'.

SOLUTION :

npm install --save rxjs-compat