Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Uncaught (in promise): VersionError: The operation failed because the stored database is a higher version than the version requested. #1096

Open
SyedJIK opened this issue Sep 27, 2023 · 2 comments

Comments

@SyedJIK
Copy link

SyedJIK commented Sep 27, 2023

I'm getting various errors related to this localForage. I will list them below

  1. Error: Uncaught (in promise): VersionError: The operation failed because the stored database is a higher version than the version requested.
  2. Error: Uncaught (in promise): VersionError: The requested version (3) is less than the existing version (4).
  3. Error: Uncaught (in promise): TypeError: o._dbInfo is null

These errors are breaking my application.
someone please help me to get rid of these issues

@simian-loco
Copy link

I'd suggest not using versions at all. I don't think the library supports the versioning aspect of indexeddb. I dropped using the 'version' configuration property and it fixed these issues I was experiencing.

@SyedJIK
Copy link
Author

SyedJIK commented May 18, 2024

I'd suggest not using versions at all. I don't think the library supports the versioning aspect of indexeddb. I dropped using the 'version' configuration property and it fixed these issues I was experiencing.

How to remove Versioning?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants