emberjs/ember.js · error · Error
Can't trigger action '${name}' because your app hasn't finis
Error message
Can't trigger action '${name}' because your app hasn't finished transitioning into its first route. To trigger an action on destination routes during a transition, you can call \`.send()\` on the \`Transition\` object passed to the \`model/beforeModel/afterModel\` hooks. What it means
Error "Can't trigger action '${name}' because your app hasn't finished transitioning into its first route. To trigger an action on destination routes during a transition, you can call \`.send()\` on the \`Transition\` object passed to the \`model/beforeModel/afterModel\` hooks." thrown in emberjs/ember.js.
Source
Thrown at packages/@ember/routing/router.ts:1753
let routerHasRoute = router.hasRoute(fullName);
let ownerHasRoute =
owner.factoryFor(`template:${localName}`) || owner.factoryFor(`route:${localName}`);
return routerHasRoute && ownerHasRoute;
}
export function triggerEvent<N extends MethodNamesOf<typeof defaultActionHandlers>>(
this: EmberRouter,
routeInfos: InternalRouteInfo<Route>[],
ignoreFailure: boolean,
name: N,
args: OmitFirst<Parameters<(typeof defaultActionHandlers)[N]>>
): void {
if (!routeInfos) {
if (ignoreFailure) {
return;
}
// TODO: update?
throw new Error(
`Can't trigger action '${name}' because your app hasn't finished transitioning into its first route. To trigger an action on destination routes during a transition, you can call \`.send()\` on the \`Transition\` object passed to the \`model/beforeModel/afterModel\` hooks.`
);
}
let eventWasHandled = false;
let routeInfo, handler, actionHandler;
for (let i = routeInfos.length - 1; i >= 0; i--) {
routeInfo = routeInfos[i];
assert('[BUG] Missing routeInfo', routeInfo);
handler = routeInfo.route;
actionHandler = handler && handler.actions && handler.actions[name];
if (actionHandler) {
if (actionHandler.apply(handler, args) === true) {
eventWasHandled = true;
} else {
// Should only hit here if a non-bubbling error action is triggered on a route.
if (name === 'error') {View on GitHub (pinned to 26f97246a8)
When it happens
Trigger: Thrown at packages/@ember/routing/router.ts:1753 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of emberjs/ember.js@26f97246a8 (2026-09-01).
Data as JSON: /api/errors/f0edab9d99df3490.
Report an issue: GitHub.