Skip to main content

Troubleshooting & FAQ

Common issues and solutions for Dubhe Engine development.

Installation Issues

CLI Installation Fails

Problem: npm install -g @0xobelisk/dubhe-cli fails with permission errors. Solution:

Node.js Version Compatibility

Problem: Dubhe CLI requires Node.js v18 or later. Solution:

Project Setup Issues

Sui CLI Not Found

Problem: sui: command not found when running dubhe dev. Solution: Install the Sui CLI following the official guide:

Local Network Connection Failed

Problem: Cannot connect to local Sui network. Solution:

Contract Development Issues

Move Compilation Errors

Problem: Move compilation failed with unclear error messages. Solutions:
  1. Check syntax errors:
  2. Common syntax issues:
    • Missing semicolons in Move code
    • Incorrect module naming
    • Missing use statements
  3. Clean and rebuild:

Schema Generation Issues

Problem: Generated Move code doesn’t match schema definitions. Solution:

Client SDK Issues

Connection Errors

Problem: Frontend cannot connect to deployed contracts. Solutions:
  1. Check package ID:
  2. Network mismatch:

Component Query Failures

Problem: getComponent() returns undefined or throws errors. Solutions:
  1. Entity exists check:
  2. Component name mismatch:

Transaction Failures

Problem: Transactions fail with cryptic error messages. Common solutions:
  1. Insufficient gas:
  2. Component ownership:

Performance Issues

Slow Query Performance

Problem: Component queries take too long. Solutions:
  1. Enable caching:
  2. Batch queries:

High Gas Costs

Problem: Transactions consume too much gas. Solutions:
  1. Optimize Move code:
  2. Batch operations:

Development Workflow Issues

Hot Reload Not Working

Problem: Changes to contracts don’t reflect in frontend during development. Solution:

VS Code IntelliSense Issues

Problem: TypeScript autocomplete not working for generated types. Solution:

Getting Help

If you’re still experiencing issues:

Discord Community

Get help from the community

GitHub Issues

Report bugs and request features

Documentation

Review the complete documentation

Contributing

Found a solution to a common problem? Help improve this guide by contributing to our documentation on GitHub.