{"record":{"id":"f4f9274099838d09","repo":"octobercms/october","slug":"cannot-create-inspector-container-wrapper-without","errorCode":null,"errorMessage":"Cannot create Inspector container wrapper without a container element.","messagePattern":"Cannot create Inspector container wrapper without a container element\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"modules/backend/assets/foundation/controls/inspector/inspector.wrapper.container.js","lineNumber":14,"sourceCode":"/*\n * Inspector container wrapper.\n */\n+function ($) { \"use strict\";\n\n    // CLASS DEFINITION\n    // ============================\n\n    var Base = $.oc.inspector.wrappers.base,\n        BaseProto = Base.prototype\n\n    var InspectorContainer = function($element, surface, options) {\n        if (!options.container) {\n            throw new Error('Cannot create Inspector container wrapper without a container element.')\n        }\n\n        this.surfaceContainer = null\n\n        Base.call(this, $element, surface, options)\n    }\n\n    InspectorContainer.prototype = Object.create(BaseProto)\n    InspectorContainer.prototype.constructor = Base\n\n    InspectorContainer.prototype.init = function() {\n        this.registerHandlers()\n\n        BaseProto.init.call(this)\n    }\n\n    InspectorContainer.prototype.dispose = function() {\n        this.unregisterHandlers()","sourceCodeStart":1,"sourceCodeEnd":32,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/assets/foundation/controls/inspector/inspector.wrapper.container.js#L1-L32","documentation":"Constructor guard for the container wrapper: options.container must supply the DOM element that hosts the Inspector surface. Instantiating the wrapper without that option cannot proceed, so it throws immediately before Base initialization.","triggerScenarios":"Thrown at modules/backend/assets/foundation/controls/inspector/inspector.wrapper.container.js:14 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass a valid container element via the data-inspector-container attribute or options.container","Ensure the container element exists in the DOM before initializing the Inspector","If embedding dynamically, create/attach the container node first"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","contentChangedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}