Comments (3)
Ionic storage (which I think come pre-installed w/ ionic) uses localforage v1.4 + the respective @types
.
The easy & dirty fix would be to just delete node_modules/@types/localforage
(please try this initially and post back your findings).
You will probably have to use v1.1 of this library which is compatible with localforage v1.4 that ionic uses.
There is already a PR in ionic-storage to upgrade their localforage dependency.
from localforage-observable.
Deleting node_modules/@types/localforage
fix the problem. Thanks!
from localforage-observable.
👍 Cheers
Can I ask you a favor?
Can you try restoring the @types/localforage
folder (eg with a new npm i
) and try setting the exclude
property of your tsconfig.json
to
"exclude": [
/* ... , */
"node_modules/@types/localforage"
]
and report back your findings?
from localforage-observable.
Related Issues (18)
- I'm interested in what this adds to localForage's promise based api? HOT 1
- How to merge multiple observables in to one? HOT 7
- localforage.setItem in a promise won't fire Observable with rxjs HOT 14
- Add support for cross-tab notifications HOT 10
- Use LocalForage-observable in an es6/typescript environment HOT 19
- Fix import window from 'window' error HOT 1
- Add proper Typings HOT 1
- Implement a getItemObservable method
- clear() doesn't trigger event HOT 6
- Support for localforage instances HOT 1
- ReferenceError: Observable is not defined HOT 2
- ReferenceError: Observable is not defined HOT 2
- IE 11 toString - Invalid calling object HOT 4
- [Feature Request] Provide a way to customize cross tab observer implementation
- [Question] Observe this same store from different instances
- How to install / what's the npm package name?
- Observable is not defined error while trying localForage.newObservable({})
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from localforage-observable.