Troubleshooting Guide
This document covers common issues, errors, and their solutions when working at Innox Technologies
Table of Contents
Development Issues
Issue: "Module not found: Can't resolve '@/components/...'"
Issue: Changes not reflecting in dev server
Issue: Port 3000 already in use
Build Errors
Issue: "ReferenceError: document is not defined"
Issue: "Server actions cannot be used in Client Components"
Issue: "Module not found: Package subpaths not defined"
TypeScript Errors
Issue: "Property 'X' does not exist on type 'Y'"
Issue: "Type 'X' is not assignable to type 'Y'"
Issue: "Cannot find module 'next-auth'"
Chakra UI v3 Issues
Issue: "Property 'Provider' does not exist"
Issue: "Property 'Avatar' does not exist"
Issue: "Property 'bgPalette' does not exist"
Issue: How to check available Chakra v3 exports
Authentication Issues
Issue: "Invalid next-auth config"
Issue: "Session is always null"
Issue: "Redirect not working after logout"
Issue: "JWT token not including role"
Performance Issues
Issue: Slow initial page load
Issue: Too many Client Components
Issue: Slow Server Actions
Deployment Issues
Issue: Build fails on Vercel
Issue: "NEXTAUTH_URL mismatch"
Issue: Static generation fails
Debugging Tips
Enable Debug Mode
Check Server Action Logs
Network Tab
React DevTools
Common Mistakes
1. Forgetting "use client"
2. Using fetch in Server Components
3. Not handling ActionResult
4. Hardcoding colors
Getting Help
1. Check Documentation
2. Search Existing Issues
3. Debug Steps
4. Ask for Help
5. Create Issue
Quick Reference
Reset Everything
Check Versions
Useful Commands
Environment Check
Last updated
