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 module "localforage"

See original GitHub issue

I’m getting this error: Cannot find module "localforage"

I followed the tutorial from ionic page: https://ionicframework.com/docs/v2/storage/ without installing SQLite plugin.

This is my environment:

Ionic Framework: 2.0.0-rc.5
Ionic Native: 2.2.11
Ionic App Scripts: 1.0.0
Angular Core: 2.2.1
Angular Compiler CLI: 2.2.1

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

13reactions
felixblecommented, Mar 11, 2017

Have you tried removing the @ionic/storage package and re-install it again? That worked for me:

npm uninstall --save @ionic/storage
npm install --save @ionic/storage
8reactions
mounthiefcommented, Apr 29, 2017

Hello,

Please try : npm install --save localforage npm install --save localforage-cordovasqlitedriver

Hope it helps 😃

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 improves the offline experience of your web app by using asynchronous storage (IndexedDB or WebSQL) with a simple, localStorage - ...
Read more >
localforage-cordovasqlitedriver - npm package - Snyk
The npm package localforage-cordovasqlitedriver was scanned for known vulnerabilities and missing license, and no issues were found. Thus the package was deemed ...
Read more >
localForage - GitHub Pages
localForage is a JavaScript library that improves the offline experience of ... and for compatibility reasons localForage cannot store the value undefined ....
Read more >
Updating project to App Scripts 1.0.0 failing (using latest ionic ...
Cannot find module “localforage”. Here is my system info: Cordova CLI: 6.4.0. Ionic Framework Version: 2.0.0-rc.3. Ionic CLI Version: 2.2.1
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