{"record":{"id":"2a0c992ad5aa4a14","repo":"octobercms/october","slug":"the-tags-argument-must-be-an-array","errorCode":null,"errorMessage":"The tags argument must be an array","messagePattern":"The tags argument must be an array","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"modules/backend/vuecomponents/monacoeditor/assets/js/modeldefinition.js","lineNumber":40,"sourceCode":"        this.language = language;\n        this.tabTitle = tabTitle;\n        this.valueHolderObj = valueHolderObj;\n        this.valueHolderProperty = valueHolderProperty;\n        this.iconCssClass = iconCssClass;\n        this.customAttributes = {};\n    }\n\n    get value() {\n        return this.valueHolderObj[this.valueHolderProperty];\n    }\n\n    set value(value) {\n        this.valueHolderObj[this.valueHolderProperty] = this.postProcess(value);\n    }\n\n    setModelTags(tags) {\n        if (!Array.isArray(tags)) {\n            throw new Error('The tags argument must be an array');\n        }\n\n        this.modelTags = tags;\n    }\n\n    hasTag(tag) {\n        if (!Array.isArray(this.modelTags)) {\n            return false;\n        }\n\n        return this.modelTags.indexOf(tag) !== -1;\n    }\n\n    setAutoPrefix(prefix, prefixRegex) {\n        this.autoPrefix = prefix;\n        this.autoPrefixRegex = prefixRegex;\n    }\n","sourceCodeStart":22,"sourceCodeEnd":58,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/vuecomponents/monacoeditor/assets/js/modeldefinition.js#L22-L58","documentation":"Error \"The tags argument must be an array\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/vuecomponents/monacoeditor/assets/js/modeldefinition.js:40 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"}