{"record":{"id":"5b1a7d6a0cf1fb62","repo":"bettercap/bettercap","slug":"outlet-is-not-activated","errorCode":null,"errorMessage":"Outlet is not activated","messagePattern":"Outlet is not activated","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"modules/ui/ui/vendor.js","lineNumber":79699,"sourceCode":"                    // `attachRef` is populated when there is an existing component to mount\n                    this.attach(context.attachRef, context.route);\n                }\n                else {\n                    // otherwise the component defined in the configuration is created\n                    this.activateWith(context.route, context.resolver || null);\n                }\n            }\n        }\n    };\n    Object.defineProperty(RouterOutlet.prototype, \"isActivated\", {\n        get: function () { return !!this.activated; },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(RouterOutlet.prototype, \"component\", {\n        get: function () {\n            if (!this.activated)\n                throw new Error('Outlet is not activated');\n            return this.activated.instance;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(RouterOutlet.prototype, \"activatedRoute\", {\n        get: function () {\n            if (!this.activated)\n                throw new Error('Outlet is not activated');\n            return this._activatedRoute;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    Object.defineProperty(RouterOutlet.prototype, \"activatedRouteData\", {\n        get: function () {\n            if (this._activatedRoute) {\n                return this._activatedRoute.snapshot.data;","sourceCodeStart":79681,"sourceCodeEnd":79717,"githubUrl":"https://github.com/bettercap/bettercap/blob/8eca2820f3c41d2004434ed5a291d87462caeeb7/modules/ui/ui/vendor.js#L79681-L79717","documentation":"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.","triggerScenarios":"Thrown at modules/ui/ui/vendor.js:79699 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8eca2820f3c41d2004434ed5a291d87462caeeb7","analyzedAt":"2026-09-02T12:49:00.712Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T16:17:10.729Z"}