Fix Vite module not found error in production Docker deployments
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
Update Dockerfile to compile server files separately without bundling, preventing Vite dependency issues in production. Includes troubleshooting documentation for the Vite module error. Replit-Commit-Author: Agent Replit-Commit-Session-Id: ceced2fc-aa46-458d-ba87-ddd4b7bb1518 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/659922a9-0087-461c-90dd-6d9a58b81d4d/ceced2fc-aa46-458d-ba87-ddd4b7bb1518/SBF5OKZ
This commit is contained in:
@@ -270,6 +270,19 @@ SELECT * FROM labels;
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
### Vite Module Error
|
||||
|
||||
If you see an error like:
|
||||
```
|
||||
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'vite'
|
||||
```
|
||||
|
||||
**Solution**: This has been fixed in the latest version. Make sure you're using the updated Dockerfile that compiles server files separately. See [DOCKER-FIX.md](./DOCKER-FIX.md) for technical details.
|
||||
|
||||
**Quick fix**:
|
||||
1. Rebuild your Docker image with the latest Dockerfile
|
||||
2. Redeploy with `docker-compose up -d --build`
|
||||
|
||||
### Container Won't Start
|
||||
|
||||
**Check logs:**
|
||||
|
||||
Reference in New Issue
Block a user