You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SQLite providers silently fail: eval("require") is undefined in ESM context #98
codeburn status shows zero data for SQLite-based providers (OpenCode, Cursor) even when data exists.
Root Cause
dist/cli.js has "type": "module" in package.json, so Node runs it as ESM. But loadDriver() in src/sqlite.ts uses:
constmod=eval("require")("node:sqlite");
In ESM, require is not defined, so this throws ReferenceError: require is not defined. The error is silently caught, loadDriver() returns false, and all SQLite-based providers (OpenCode, Cursor) are skipped with no output.
OpenCode with data in ~/.local/share/opencode/opencode.db (17k+ messages)
Workaround
Patch dist/cli.js manually: add import { createRequire } from "module"; var __require = createRequire(import.meta.url); after the shebang, and replace eval("require") with __require.
Activity