According to the docs, it's compatible with node version 12 or later. But it seems to fail in node 16 as I ran into an error when importing @libsql/client or @libsql/client/web:
.../node_modules/@libsql/isomorphic-fetch/node.cjs:3
const _Request = Request;
^
ReferenceError: Request is not defined
Upon searching, almost all answers seem to suggest upgrading to node 18.
Hello there!
According to the docs, it's compatible with node version 12 or later. But it seems to fail in node 16 as I ran into an error when importing
@libsql/client
or@libsql/client/web
:Upon searching, almost all answers seem to suggest upgrading to node 18.
For now, I can take advantage of using libsql-js instead, but it seems like it doesn't support returning rows in array form https://github.com/tursodatabase/libsql-js/issues/116. Would love to learn to resolve these issues! :)
Note:
@libsql/client/sqlite3
works fine, but I feel like it only supports file based or:memory:
database?