Open fe-franco opened 5 months ago
I encountered the same problem using Turso, Android Bundling failed 12919ms C:\Users\ableez\Documents\Repos\askerisk\node_modules\expo-router\entry.js (3444 modules) Unable to resolve "@libsql/core/config" from "node_modules\@libsql\client\lib-cjs\node.js"
I encountered the same problem using Turso, Android Bundling failed 12919ms C:\Users\ableez\Documents\Repos\askerisk\node_modules\expo-router\entry.js (3444 modules) Unable to resolve "@libsql/core/config" from "node_modules@libsql\client\lib-cjs\node.js"
I am experiencing the same issue! Any libsql-js dev can solve this? We can't connect Turso databases with an expo-react native app!
Expo is doing its static analysis on the libsql file.
if (0) {
require("./.targets");
}
This is suppose to only load when it's in "dev" mode:
if (process.env.LIBSQL_JS_DEV) {
return load(__dirname)
}
Turso can add a try/catch
, or you can create a temporary .targets
file in node_modules/libsql/.targets
If that doesn't work, try monkey patching that library.
Hello everyone, I'm currently in the process of building an Expo app utilizing the Expo Router v3 API routes. Previously, I had been using Planetscale without any issues. However, upon attempting to migrate to Turso, I've encountered a bundling error:
I've created a minimal reproduction of the issue in CodeSandbox