Cannot find name 'LocalForage'.
See original GitHub issueSince updating the package getting this error
Typescript Error
Cannot find name ‘LocalForage’.
.../node_modules/@ionic/storage/es2015/storage.d.ts
undefined
undefined
“@ionic/storage”: “^1.1.8” Ionic Framework: ^2.0.0 Ionic Native: ^2.5.1 Ionic App Scripts: 1.0.1 Angular Core: ^2.4.6 Angular Compiler CLI: ^2.4.6 Node: 6.3.0 OS Platform: Windows 10 Navigator Platform: Win32 User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36
Issue Analytics
- State:
- Created 7 years ago
- Reactions:18
- Comments:9 (3 by maintainers)
Top Results From Across the Web
how to get rid of typescript error message "Cannot find module ...
First - install type definitions from: localforage. Second - change your import to: import {localforage} from 'localforage';.
Read more >localforage - npm
localForage supports storing all native JS objects that can be serialized to JSON, as well as ArrayBuffers, Blobs, and TypedArrays. Check the ...
Read more >Cannot find type definition file for 'localforage' - Ionic Framework
First of all, I do not use typings in my project. At least not that I know of. I also do not use...
Read more >localForage - GitHub Pages
localForage is a JavaScript library that improves the offline experience of your web app by using an asynchronous ... Get the name of...
Read more >localForage: Managing offline browser storage - LogRocket Blog
Store API data that rarely changes on the server-side so the app doesn't have to make server calls for such data all the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is fixed in
1.1.9
. It seems like the issue was because we had a^
dependency on TypeScript which changed the way.d.ts
files are published. Hard-coding TypeScript 2.0.x fixed the issue for me.Thanks, Dan
kinda wondering when they will respond to this, i have tried everything to get it working, im stuck on 1.1.7. i’ve tried a fresh wipe of my node_modules and reinstall and it appears there is an issue between the dependencies with 1.1.8 and the localforage version, what issue that is though is outside of my ability to see easily