Overview
This guide covers common issues you may encounter and their solutions. For issues not covered here, check the application logs or contact support.Installation Issues
Port Already in Use
Problem: Development server fails to start with “Port 5173 already in use” error. Solution:Module Not Found Errors
Problem: Getting “Cannot find module” errors after installation. Solutions:- Clean Install
- Clear Cache
- Check Node Version
Remove and reinstall dependencies:
TypeScript Errors
Problem: TypeScript compilation errors during build. Solutions:Check TypeScript Version
Check TypeScript Version
Ensure TypeScript 5.8.3 or higher:If version is wrong:
Verify tsconfig.json
Verify tsconfig.json
Check that
tsconfig.json includes correct paths:IDE/Editor Issues
IDE/Editor Issues
Restart your IDE/editor:
- VS Code: Reload window (Ctrl+Shift+P → “Reload Window”)
- Restart TypeScript server
- Clear editor cache
Check for Type Errors
Check for Type Errors
Run TypeScript compiler check:This shows all type errors without building.
Authentication Issues
Unable to Login
Problem: Login fails with “Invalid credentials” error. Checklist:Username and password are correct (case-sensitive)
Backend API is running and accessible
VITE_API_BASE_URL is configured correctly in
.envNetwork connection is stable
No CORS errors in browser console
Check API Connection
Open browser DevTools (F12) → Network tabLook for the login request:
- Status should be 200 (success)
- If 401: Wrong credentials
- If 404: Wrong API URL
- If 500: Backend error
Registration Failed
Problem: Cannot register new user. Common Causes:Email Not Whitelisted
Email Not Whitelisted
Error: “Este correo no está autorizado para registrarse”Solution:
- Contact system administrator to add email to whitelist
- Check backend whitelist configuration
- Verify email is spelled correctly
Weak Password
Weak Password
Error: “La contraseña debe tener al menos 8 caracteres”Solution:
- Use password with minimum 8 characters
- Include uppercase, lowercase, numbers, and symbols for stronger password
- Check password strength indicator
Password Mismatch
Password Mismatch
Error: “Las contraseñas no coinciden”Solution:
- Ensure “Password” and “Confirm Password” fields match exactly
- Check for extra spaces or hidden characters
Username Already Exists
Username Already Exists
Error: Username is already takenSolution:
- Choose a different username
- Contact admin if you believe this is an error
Session Expired
Problem: Automatically logged out unexpectedly. Causes:- Idle timeout: 15 minutes of inactivity (
src/components/auth/IdleHandler.tsx:21) - Browser closed: Session storage is cleared
- Manual logout: User clicked logout
- Simply log in again
- Stay active to prevent timeout
- Consider implementing “remember me” feature
API Connection Issues
CORS Errors
Problem: Browser shows CORS policy errors in console.- Express.js
- Spring Boot
- Nginx
Network Request Failed
Problem: All API requests fail with network error. Debug Checklist:Build Issues
Build Fails
Problem: Production build fails with errors. Solutions:Out of Memory
Out of Memory
Error: JavaScript heap out of memorySolution:
Increase Node.js memory:
ESLint Errors
ESLint Errors
Error: Build fails due to linting errorsSolution:
- Fix linting errors:
- Or temporarily disable linting in build:
package.json
Import Errors
Import Errors
Error: Cannot resolve module importsSolution:
- Check import paths use
@/alias correctly - Verify files exist at import locations
- Check file extensions (.tsx, .ts, .jsx, .js)
- Ensure proper casing (case-sensitive)
Build Size Too Large
Problem: Bundle size exceeds recommended limits. Solutions:Runtime Issues
White Screen / App Won’t Load
Problem: Application shows blank screen. Debug Steps:Check Browser Console
Open DevTools (F12) → Console tabLook for:
- JavaScript errors
- Failed network requests
- Missing files (404 errors)
Verify Build
Check that
dist/ folder contains:- index.html
- assets/ folder with JS and CSS files
Performance Issues
Problem: Application is slow or unresponsive. Optimization Checklist:Enable production build (not development)
Minimize re-renders with React.memo
Use virtualization for long lists
Optimize images (compress, lazy load)
Enable code splitting
Cache API responses with TanStack Query
Data Issues
Data Not Updating
Problem: Changes don’t appear after saving. Checklist:Check Network Request
- Open DevTools → Network
- Verify request was sent
- Check response status (should be 200)
- Confirm response data
Verify State Management
- Check TanStack Query is invalidating cache
- Confirm mutations are configured correctly
- Look for stale data indicators
Export Not Working
Problem: Excel export fails or downloads empty file. Solutions:Check File-Saver
Check File-Saver
Verify file-saver is installed:If missing:
Browser Compatibility
Browser Compatibility
- Ensure browser supports Blob API
- Check pop-up blocker isn’t preventing download
- Try different browser
Data Availability
Data Availability
- Verify there’s data to export
- Check date range filter
- Confirm API returned data
Environment Issues
Environment Variables Not Loading
Problem:import.meta.env.VITE_API_BASE_URL returns undefined.
Solutions:
Getting Help
Debugging Tools
Browser DevTools:- Console: View errors and logs
- Network: Monitor API requests
- Application: Check storage (sessionStorage)
- Sources: Debug JavaScript
- Performance: Profile slow operations
- Component inspection
- Props and state viewing
- Performance profiling
- Hook debugging
Log Files
Check logs for errors: Development:- Browser console
- Terminal running
npm run dev
- Server logs
- Error monitoring service (Sentry, etc.)
- Browser console (if accessible)
Common Error Messages
Failed to fetch
Failed to fetch
Cause: Network request failedCheck:
- Backend is running
- API URL is correct
- CORS is configured
- Network connectivity
Cannot read property of undefined
Cannot read property of undefined
Cause: Accessing property on undefined/null objectCheck:
- Optional chaining:
user?.name - Null checks before access
- API response structure
- Loading states
Unexpected token
Unexpected token
Cause: Syntax error in JavaScript/JSONCheck:
- Missing/extra commas
- Unclosed brackets/braces
- Invalid JSON in API response
- File encoding (should be UTF-8)
Support Resources
Installation Guide
Review installation steps
Configuration
Check configuration settings
Environment Setup
Verify environment variables
User Management
Authentication troubleshooting
If your issue isn’t covered here, check the browser console for specific error messages and review the relevant documentation sections.