Troubleshooting¶
Build Errors¶
error: linker 'link.exe' not found (Windows)¶
MSVC Build Tools are missing. Install them:
winget install Microsoft.VisualStudio.2022.BuildTools
During installation, select the "Desktop development with C++" workload. Then restart your terminal.
webkit2gtk not found (Linux)¶
Install the required system libraries for your distro. The Tauri prerequisites list current platform packages.
# Ubuntu / Debian
sudo apt install pkg-config libwebkit2gtk-4.1-dev libjavascriptcoregtk-4.1-dev libgtk-3-dev libsoup-3.0-dev libssl-dev libayatana-appindicator3-dev
# Fedora
sudo dnf install pkg-config webkit2gtk4.1-devel javascriptcoregtk4.1-devel gtk3-devel libsoup3-devel openssl-devel libappindicator-gtk3-devel
# Arch
sudo pacman -S pkgconf webkit2gtk-4.1 gtk3 libsoup3 openssl libayatana-appindicator
Xcode CLT not found (macOS)¶
xcode-select --install
This opens a system dialog. Click Install and wait for the download to complete (typically 2–5 minutes).
Rust version too old¶
Crabyard requires Rust ≥ 1.90. Update via rustup:
rustup update stable
Runtime Errors¶
App opens but shows a blank screen¶
- Right-click the window → Inspect → check the Console tab for JavaScript errors
- Verify Vite dev server is running on
http://localhost:1420 - Check
tauri.conf.json→devUrlmatches the dev server port
GITHUB_CLIENT_ID is not set¶
- Copy
.env.exampleto.envif you haven't:cp .env.example .env - Fill in
GITHUB_CLIENT_IDwith your GitHub OAuth App's Client ID
OAuth Device Flow never completes¶
- Verify your GitHub OAuth App's Client ID matches
GITHUB_CLIENT_IDin.env - Make sure you're entering the user code at
https://github.com/login/device - Enable Device Flow in the GitHub OAuth App settings. Device Flow does not use the app's callback URL.
Port 1420 already in use¶
Another Vite dev server or process is using the port. Either stop it or change the port:
- In
vite.config.ts, change theserver.portvalue - Update
devUrlinsrc-tauri/tauri.conf.jsonto match
Generation Errors¶
Auth module 'X' not found in template¶
The cached template may be corrupted or outdated.
- Remove the cached templates from the platform's cache directory:
- macOS:
~/Library/Caches/crabyard/templates/ - Linux:
$XDG_CACHE_HOME/crabyard/templates/, or~/.cache/crabyard/templates/whenXDG_CACHE_HOMEis unset - Windows:
%LOCALAPPDATA%\crabyard\templates\
- macOS:
- Re-run
crabyard new
License server unreachable¶
- Check your internet connection
- The API at
api.crabyard.commay be temporarily down - Licensed downloads validate the key remotely even when a template is cached
- Use
--template /path/to/crabyard-templateswith a local checkout to generate without the license service - For a canonical-domain outage, use the explicit HTTPS API override described in Installation
WebView2 installation hangs (Windows)¶
The automated WebView2 installer has a 15-minute timeout. If it fails:
- Download manually from Microsoft Edge WebView2
- Run the installer
- Re-run
crabyard new
Development Tips¶
Hot reload not working¶
- Make sure both the Vite dev server and Rust backend are running (
bun run tauri devstarts both) - Frontend changes hot-reload instantly; Rust changes require a recompile (automatic with
tauri dev)
Slow Rust compilation¶
First build is slow (compiling all dependencies). Subsequent builds are incremental. To speed things up:
- Use
cargo checkinstead ofcargo buildfor type-checking - Install
sccachefor a shared compilation cache - On Linux, use
moldlinker: add to.cargo/config.toml:[target.x86_64-unknown-linux-gnu] linker = "clang" rustflags = ["-C", "link-arg=-fuse-ld=mold"]