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

access to local sqlite file #285

Open
aloon opened this issue Nov 8, 2024 · 4 comments
Open

access to local sqlite file #285

aloon opened this issue Nov 8, 2024 · 4 comments

Comments

@aloon
Copy link

aloon commented Nov 8, 2024

When I try to access to local sqlite file a get the error:

URL_SCHEME_NOT_SUPPORTED: The client that uses Web standard APIs supports only "libsql:", "wss:", "ws:", "https:" and "http:" URLs, got "file:". For more information, please read https://github.com/libsql/libsql-client-ts#supported-urls

I access exactly the same than is in the example: https://github.com/tursodatabase/libsql-client-ts/blob/main/examples/local/index.mjs#L3

@nechita
Copy link

nechita commented Dec 2, 2024

@aloon I'm experiencing the same issue. Have you found any fixes for this issue?

@aloon
Copy link
Author

aloon commented Dec 2, 2024

@aloon I'm experiencing the same issue. Have you found any fixes for this issue?

I'm still exactly the same

@Alaboudi1
Copy link

import { createClient } from "@libsql/client/node";
Fix it for me

@kclementedf
Copy link

Hi all,

I get the exact same error, even with @Alaboudi1 proposed solution. Does anyone have an idea ? 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

No branches or pull requests

4 participants