Troubleshooting¶
Common errors and fixes when working with Bull SDK.
Build Errors¶
86 type errors after FRB codegen¶
Symptom:
Cause: fix_frb_generated.sh was not run after codegen.
Fix:
"sed: invalid option -- ''" on Linux¶
Symptom:
Cause: fix_frb_generated.sh uses macOS sed -i '' syntax.
Fix: Replace all sed -i '' with sed -i in the script (lines 6, 7, 53).
Duplicate trait definitions¶
Symptom:
Cause: A sub-crate's frb_generated.rs is not cfg-gated.
Fix: Check that the sub-crate's lib.rs has:
Unresolved import for mirror type¶
Symptom:
Cause: New mirror type not visible in the module tree.
Fix: Ensure packages/bull_sdk/rust/src/api/mod.rs exports it:
Submodule Errors¶
Empty submodule directories¶
Symptom: packages/ark-wallet/ exists but is empty.
Fix:
SSH connection refused¶
Symptom:
Cause: .gitmodules uses SSH URLs but no SSH keys are configured.
Fix:
sed -i 's|git@github.com:|https://github.com/|' .gitmodules
git submodule sync
git submodule update --init --recursive
Flutter Errors¶
Version mismatch¶
Symptom:
Fix: Use FVM to ensure correct versions:
"web: false" — no Rust on web¶
This is by design. The flutter_rust_bridge.yaml has web: false, so Flutter web builds are Dart-only. Rust APIs are unavailable in web builds.
For full Rust access, use Linux, Android, iOS, macOS, or Windows.
Getting Help¶
- Check the FRB Codegen guide
- Review Architecture for design context
- Open an issue on GitHub