This guide covers common issues and their solutions when working with NextSaaS.
Error: Invalid Supabase configuration: [{"code":"invalid_type","expected":"string","received":"undefined"...}]
Solution: Add your environment variables to turbo.json:
{
"globalEnv": [
"NODE_ENV",
"NEXT_PUBLIC_SUPABASE_URL",
"NEXT_PUBLIC_SUPABASE_ANON_KEY",
"SUPABASE_SERVICE_ROLE_KEY",
"NEXT_PUBLIC_ORGANIZATION_MODE",
// Add any other env vars your apps need
]
}Then restart your dev server from the root directory.
Error: ERROR: 42P07: relation "idx_projects_organization_id" already exists
Solution: The latest version handles existing objects gracefully. Run:
npm run db:generate-sql -- --mode [your-mode]Error: column "features" is of type jsonb but expression is of type text[]
Solution: This has been fixed. The features column now uses jsonb type consistently.
For detailed troubleshooting guides, visit the documentation site:
- Start the docs server:
npm run dev - Visit: http://localhost:3001/troubleshooting
The documentation includes detailed guides for:
- Environment Variables issues
- Database Connection problems
- Build & Compilation errors
- Port Conflicts
- Authentication issues
- Deployment problems
- Check existing issues: GitHub Issues
- Ask the community: Discord Server
- Create a new issue: Include:
- Steps to reproduce
- Error messages
- Your environment (OS, Node version)
- Relevant configuration files
Found a solution to a common problem? Please contribute it back:
- Add it to this guide
- Update the documentation site
- Submit a PR
Your contributions help the entire community!