bettercap/bettercap · error
Outlet is not activated
Error message
Outlet is not activated
What it means
RouterOutlet methods that operate on the currently mounted component (deactivate, deactivateWith, component references, etc.) first assert isActivated. This throw fires when such an operation is attempted on an outlet that has no activated component — e.g. deactivating an empty outlet or querying the activated route before activation.
Source
Thrown at modules/ui/ui/vendor.js:79699
// `attachRef` is populated when there is an existing component to mount
this.attach(context.attachRef, context.route);
}
else {
// otherwise the component defined in the configuration is created
this.activateWith(context.route, context.resolver || null);
}
}
}
};
Object.defineProperty(RouterOutlet.prototype, "isActivated", {
get: function () { return !!this.activated; },
enumerable: true,
configurable: true
});
Object.defineProperty(RouterOutlet.prototype, "component", {
get: function () {
if (!this.activated)
throw new Error('Outlet is not activated');
return this.activated.instance;
},
enumerable: true,
configurable: true
});
Object.defineProperty(RouterOutlet.prototype, "activatedRoute", {
get: function () {
if (!this.activated)
throw new Error('Outlet is not activated');
return this._activatedRoute;
},
enumerable: true,
configurable: true
});
Object.defineProperty(RouterOutlet.prototype, "activatedRouteData", {
get: function () {
if (this._activatedRoute) {
return this._activatedRoute.snapshot.data;View on GitHub (pinned to 8eca2820f3)
Solutions
- Check outlet.isActivated before calling activate/deactivate-dependent APIs
- Ensure lifecycle logic does not deactivate an outlet that never activated
- Use outlet.activatedRoute safely only after a navigation has activated the outlet
Defensive patterns
Strategy: type-guard
When it happens
Trigger: Thrown at modules/ui/ui/vendor.js:79699 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of bettercap/bettercap@8eca2820f3 (2026-09-02).
Data as JSON: /api/errors/5b1a7d6a0cf1fb62.
Report an issue: GitHub.