question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find name 'LocalForage'.

See original GitHub issue

Since 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:closed
  • Created 7 years ago
  • Reactions:18
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
danbucholtzcommented, Feb 20, 2017

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

2reactions
chrisworrellcommented, Feb 16, 2017

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found