Ultimate

X_ROUTE_FILE_INVALID

Means

a route file is not named for its surface

Typical cause

site/pricing.tsx or site/blog/index.tsx instead of <dir>/page.tsx

Fix

mkdir -p -- '<dir>' && mv -n -- '<file>' '<dir>/page.tsx' — quoted exactly as the thrown fix quotes them, because a route path may hold a space. api/ takes no route file (26.0.0): an action, or a plain HTTP route in the routes runtime override for a wire format an action cannot speak. -n because the correct file may already be there

Listed under Routes, render and budgets

This page as markdown