Closed ben-xD closed 1 year ago
The solution is to use the right import.
import { createClient } from '@libsql/client';
import { createClient } from '@libsql/client/web';
Hi Ben, you are absolutely right, we created the /web
import precisely for Cloudflare Workers and other non-Node environments :)
I'm trying to use this package, but I get an error:
I've tried both options to enable nodeJS APIs (you can't have both simultaneously, wrangler errors.
I'm on wrangler
2.20.0
.Does anyone know what I should try?
Thanks :)