This guide documents frequent installation, configuration, and runtime problems when working with the TaskBounty project.
Problem: The pnpm package manager is not recognized.
Solution: Enable pnpm with Corepack:
corepack enable
corepack prepare pnpm@10.26.1 --activateFallback if Corepack isn't available:
npm install -g pnpmProblem: The Stellar CLI is not installed or not on your PATH.
Solution:
cargo install --locked stellar-cli --features opt
export PATH="$HOME/.cargo/bin:$PATH"Persist the PATH change in your shell profile (e.g., ~/.bashrc, ~/.zshrc, ~/.profile) if needed.
Problem: Rust/Cargo is not installed or not on your PATH.
Solution: Install Rust using the official installer:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"Problem: The wasm32-unknown-unknown target isn't installed.
Solution:
rustup target add wasm32-unknown-unknownProblem: Compilation errors when running stellar contract build.
Solution:
-
Clean the build artifacts and rebuild:
cd contract cargo clean stellar contract build -
Check your Rust version. Ensure you're using a stable release.
Problem: The first test run takes a very long time.
Solution: This is normal! Soroban dependencies are large, and the first compile can take several minutes. Let it finish, and subsequent runs will be much faster.
You can run tests with output to verify progress:
cd contract
cargo test -- --nocaptureProblem: cargo clippy reports warnings as errors.
Solution: Review and fix the reported issues. Clippy enforces best practices for Rust code.
Problem: Installation errors related to Node.js or pnpm versions.
Solution:
-
Check your versions:
node -v # Should be 20.9.0 or newer pnpm -v # Should be 10.x
-
Clean and reinstall:
cd frontend rm -rf node_modules .next pnpm install
Problem: Another process is using port 3000.
Solution: Start Next.js on a different port:
cd frontend
pnpm dev -- --port 3001Or find and stop the process using port 3000.
Problem: Build fails because Node.js is too old.
Solution: Upgrade Node.js to 20.9.0 or newer, then reinstall dependencies:
node -v
cd frontend
rm -rf node_modules .next
corepack prepare pnpm@10.26.1 --activate
corepack pnpm install
corepack pnpm buildProblem: Wallet connection fails.
Solution: Check the following:
- A supported Stellar wallet extension is installed (e.g., Freighter)
- The wallet is unlocked
- The wallet is allowed to connect to the current site
- You are testing against the same network expected by the app
Note: The current frontend initializes the wallet kit with the public network.
Problem: Environment variables in .env.local don't take effect.
Solution: This is expected with the current codebase. The frontend does not yet read local environment variables for wallet network, Horizon URL, or contract IDs.
Problem: /api/health returns an error or times out.
Solution:
-
Ensure the frontend dev server is running:
cd frontend pnpm dev -
Check the server logs for errors.
-
Verify the endpoint path is correct (
http://localhost:3000/api/health).