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

fix: open function is undefined #250

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SamuelScheit
Copy link

I've tried to use the KV Storage class from op-sqlite but got the error [TypeError: 0, _.open is not a function (it is undefined)] on android (weirdly enough it works on ios).
I've fixed the error by changing the import in Storage.ts from:

import { open, type DB } from '.';

to

import { open, type DB } from './index';

@ospfranco
Copy link
Contributor

Ah, weird, thanks!

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

Successfully merging this pull request may close these issues.

2 participants