{"record":{"id":"fec452a2649276a9","repo":"octobercms/october","slug":"module-namespace-is-not-registered-namespace","errorCode":null,"errorMessage":"Module namespace is not registered: ${namespace}","messagePattern":"Module namespace is not registered: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"modules/backend/assets/js/october/october.jsmodule.js","lineNumber":18,"sourceCode":"+(function($) {\n    'use strict';\n\n    function OctoberModuleRegistry() {\n        this.moduleMap = new Map();\n\n        this.register = function(namespace, registrationFn) {\n            if (this.moduleMap.has(namespace)) {\n                console.info('Module namespace is already registered: ' + namespace);\n                return;\n            }\n\n            this.moduleMap.set(namespace, registrationFn());\n        };\n\n        this.import = function(namespace) {\n            if (!this.exists(namespace)) {\n                throw new Error('Module namespace is not registered: ' + namespace);\n            }\n\n            return this.moduleMap.get(namespace);\n        };\n\n        this.exists = function(namespace) {\n            return this.moduleMap.has(namespace);\n        };\n    }\n\n    if (!window.oc) {\n        window.oc = {};\n    }\n\n    window.oc.Modules = new OctoberModuleRegistry();\n\n    // oc.Module and $.oc.module is @deprecated -sg\n    window.oc.Module = $.oc.module = window.oc.Modules;","sourceCodeStart":1,"sourceCodeEnd":36,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/assets/js/october/october.jsmodule.js#L1-L36","documentation":"Error \"Module namespace is not registered: ${namespace}\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/assets/js/october/october.jsmodule.js:18 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}