Prerequisites
Before installing Databite SDK, ensure you have:- Node.js >= 16.0.0
- TypeScript >= 4.5.0 (recommended)
- npm, yarn, pnpm, or bun package manager
Core Installation
Install the essential Databite packages:These three packages are the core of the Databite SDK and are required for
most use cases.
Additional Packages
Install additional packages based on your needs:React Integration
For React applications with UI components:Pre-built Connectors
For ready-to-use connectors:Data Synchronization
For automated data synchronization:AI Connector Generation
For AI-powered connector generation:Package Manager Options
npm
yarn
pnpm
bun
TypeScript Configuration
Ensure yourtsconfig.json
includes the necessary compiler options:
Environment Setup
Node.js Environment
For server-side usage:Browser Environment
For client-side usage with React:Next.js
For Next.js applications:Verification
Test your installation by creating a simple connector:Troubleshooting
Common Issues
TypeScript Errors
TypeScript Errors
Ensure you have TypeScript >= 4.5.0 installed and properly configured. Check
your
tsconfig.json
for the correct compiler options.Peer Dependency Warnings
Peer Dependency Warnings
Install the required peer dependencies for the packages you’re using. Each
package’s documentation lists its peer dependencies.
Module Resolution Issues
Module Resolution Issues
Make sure your
tsconfig.json
has "moduleResolution": "node"
and
"esModuleInterop": true
enabled.React Hooks Errors
React Hooks Errors
If using
@databite/connect
, ensure you’re using React 16.8+ and have
react
and react-dom
installed.Getting Help
If you encounter issues:- Check the Common Issues guide
- Review the Debugging guide
- Join our Discord community
- Open an issue on GitHub