Skip to content

Cannot resolve WASM SQLite fallback active (better-sqlite3 unavailable) #203

@Finndersen

Description

@Finndersen

When doing codegraph init -i I always see the warning:

─────────────────────────────────────────────────────────────────
[CodeGraph] WASM SQLite fallback active (better-sqlite3 unavailable)
─────────────────────────────────────────────────────────────────
Indexing and sync will be 5-10x slower than the native backend.

Fix on macOS:
  xcode-select --install        # install C build tools
  npm rebuild better-sqlite3    # rebuild native binding for current Node

Fix on Linux:
  sudo apt install build-essential python3 make    # Debian/Ubuntu
  # or: sudo yum groupinstall "Development Tools"  # RHEL/Fedora
  npm rebuild better-sqlite3

Or force-include as a hard dependency on any platform:
  npm install better-sqlite3 --save

Verify after fix: `codegraph status` should show `Backend: native`.

Running those suggested commands or even npm install better-sqlite3 does not fix the issue. I am on MacOS, Node 24

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions