Vite + Antd App works on Windows but Single Page crashes on Linux Production (Minified React Error #130)
dev.to·2d·
Discuss: DEV
🛡️Error Handling
Preview
Report Post

I have a React application (Vite + Ant Design) deployed on Nginx (Linux). The application works perfectly in my local environment (Windows) and usually runs fine in production.

The Issue: The entire application works correctly until I navigate to one specific route (MachinesDashboard).

On Windows (Local & Prod build): The page loads perfectly.

On Linux (Nginx Production): Clicking this specific route immediately crashes the page with a error boundary screen.

The Error: The console logs:

Minified React error #130: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.

My Debugging So Far: I suspected an invalid import, so I added console.log statements inside the crashing component ...

Similar Posts

Loading similar posts...