Documentation Index
Fetch the complete documentation index at: https://mintlify.com/amanvarshney01/create-better-t-stack/llms.txt
Use this file to discover all available pages before exploring further.
Installation issues
Command not found: create-better-t-stack
Command not found: create-better-t-stack
npm create better-t-stack results in command not foundSolutions:-
Use the full npx command:
-
Check npm is installed:
If not installed, get it from nodejs.org
-
Clear npm cache:
Node.js version error
Node.js version error
-
Check your Node.js version:
-
Upgrade Node.js:
- Download from nodejs.org (LTS version recommended)
- Or use a version manager:
Permission denied errors
Permission denied errors
- Don’t use sudo (can cause issues)
-
Fix npm permissions:
-
Use a version manager:
- nvm, fnm, or asdf handle permissions automatically
Project creation issues
Directory already exists error
Directory already exists error
-
Use a different project name:
-
Use directory conflict strategy:
-
Remove existing directory:
Invalid stack combination error
Invalid stack combination error
- Check the compatibility matrix: See CLI Compatibility for valid combinations
- Use the Stack Builder: Visit better-t-stack.dev/new to see compatible options
-
Common incompatibilities:
- Cloudflare Workers requires Hono, Express, Fastify, or Elysia backend
- Convex backend doesn’t need a runtime selection
- MongoDB requires Mongoose ORM
- Some addons require specific frontends (e.g., PWA needs a web framework)
Dependency installation fails
Dependency installation fails
-
Skip auto-install and install manually:
-
Clear package manager cache:
-
Check network connection:
- Try a different network
- Check if npm registry is accessible:
-
Use a different package manager:
Development issues
TypeScript errors after project creation
TypeScript errors after project creation
-
Install dependencies:
- Restart TypeScript server: In VS Code: Cmd/Ctrl + Shift + P → “TypeScript: Restart TS Server”
-
Clear TypeScript cache:
-
Regenerate types:
Port already in use
Port already in use
-
Find and kill process using port:
-
Use a different port:
- Stop other development servers: Check if you have other dev servers running
Hot reload not working
Hot reload not working
- Check file is saved: Ensure auto-save is enabled in your editor
-
Restart dev server:
- Check file is in watch directories: Some files may be ignored by watch config
-
Disable any file watchers limit (Linux):
Database issues
Cannot connect to database
Cannot connect to database
-
Check DATABASE_URL:
Verify format matches your database type
-
For Docker databases, ensure containers are running:
-
For cloud databases, check:
- Credentials are correct
- IP is whitelisted
- Database exists
- SSL settings match requirements
-
Test connection directly:
Migrations fail
Migrations fail
- Check database connection first: Ensure you can connect to the database
-
For Drizzle:
-
For Prisma:
- Check migration files: Ensure SQL syntax is valid for your database type
-
Reset database (dev only):
Prisma Client not generated
Prisma Client not generated
API and networking issues
CORS errors in browser
CORS errors in browser
-
Check CORS_ORIGIN matches frontend URL:
-
For development, allow localhost:
-
For production, use exact domain:
Don’t use wildcards (*) in production
tRPC or oRPC connection fails
tRPC or oRPC connection fails
-
Check server URL:
-
Verify server is running:
- Check network tab in browser: Look for failed requests and error messages
-
For mobile development, use IP address:
Fetch failed or network error
Fetch failed or network error
- Check backend is running: Visit http://localhost:3000 in browser
-
Verify URLs have http:// or https://:
- Check firewall: Ensure development server port isn’t blocked
-
For React Native:
- Use computer’s IP, not localhost
- Enable network permissions in app config
- Check Expo Go or simulator can reach server
Build and deployment issues
Build fails with type errors
Build fails with type errors
-
Run type check locally:
- Fix type errors: Check the error messages and fix issues
-
Ensure all dependencies are installed:
-
Check generated types are up to date:
Deploy fails on Cloudflare
Deploy fails on Cloudflare
-
Check ALCHEMY_PASSWORD is set:
- Verify Cloudflare credentials: Ensure API token has correct permissions
-
Check environment variables:
All required vars must be in
.envfiles -
View deployment logs:
-
Test locally first:
Environment variables not working in production
Environment variables not working in production
-
Check platform-specific env var setup:
- Vercel: Dashboard > Project > Settings > Environment Variables
- Netlify: Site settings > Build & deploy > Environment
- Cloudflare: Set via Alchemy bindings in
alchemy.run.ts
- Verify variable names match exactly: Variable names are case-sensitive
-
For Vite (client-side), use VITE_ prefix:
- Redeploy after adding env vars: Changes to env vars usually require redeployment
Runtime issues
Module not found errors
Module not found errors
-
Install the package:
-
Check workspace dependencies:
-
Verify imports are correct:
-
For workspace packages, rebuild:
Slow performance
Slow performance
- Check database queries: Add indexes, optimize queries, use database query analyzer
-
Enable production mode:
- Use build tools: Development mode is slower - test performance with production build
-
Profile the application:
- Browser DevTools Performance tab
- Backend: Add timing logs
- Database: Enable query logging
-
For Cloudflare Workers:
- Reduce bundle size
- Use edge caching
- Optimize database queries
Getting help
If you’re still stuck:GitHub Discussions
GitHub Issues
FAQ
Compatibility
When reporting issues
Include:-
Command you ran:
- Error message: Copy the full error output
-
Environment:
- Operating system: macOS, Linux (which distro), Windows
- Steps to reproduce: What you did before the error occurred