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...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help