Angular: NG04014: Invalid configuration of route 'x': one of the following must be provided: component, loadComponent, redirectTo, children or loadChildren
A route object has a path but nothing for the router to render or load.
Invalid configuration of routeOne of the following must be provided: component, loadComponent, redirectTo, children or loadChildrenInvalid configuration of route '': redirectTo and pathNG04014: Invalid configuration of route Meaning
Each route needs at least one of component, loadComponent, redirectTo, children or loadChildren (plus pathMatch: 'full' for empty-path redirects). Typos in property names (componet) and empty objects are common.
Common causes
- Route without component, loadComponent, redirectTo, children or loadChildren
- Misspelled property name in the route object
redirectTowithoutpathMatch: 'full'on an empty pathloadChildrenreturning the wrong export (module/routes name)- Empty route object left from a merge
⚡ Quick fix
- Add one of the required properties to the route
- Fix typos in route properties
- Use
pathMatch: 'full'for''redirects
Detailed fix by platform
Angular
{ path: '', redirectTo: 'home', pathMatch: 'full' }and{ path: 'home', loadComponent: () => import('./home').then(m => m.HomeComponent) }
Code examples
Valid route shapes
export const routes: Routes = [
{ path: '', redirectTo: 'home', pathMatch: 'full' },
{ path: 'home', loadComponent: () => import('./home.component').then(m => m.HomeComponent) },
{ path: 'blog', children: [{ path: ':slug', component: PostComponent }] },
];How to diagnose
- Route — Which path is named?
- Properties — Does it have component/loadComponent/redirectTo/children?
- Export — Does loadChildren return the right symbol?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- Cannot find control with name Angular: Error: Cannot find control with name: 'email' (reactive forms)
- Cannot GET /route on refresh Angular (production): Cannot GET /dashboard — 404 when refreshing or opening a deep link
- Could not find the builder's node package Angular CLI: Could not find the '@angular-devkit/build-angular:browser' builder's node package / Cannot find module '@angular-devkit/build-angular/package.json'
Most viewed in Angular
Other ways to find it
Where this error sits
Origin: On your device. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 15 Oct 2026