{"record":{"id":"8eb736d13716497e","repo":"octobercms/october","slug":"options-size-must-be-a-string","errorCode":null,"errorMessage":"options.size must be a string","messagePattern":"options\\.size must be a string","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"modules/backend/vuecomponents/inspector/assets/js/classes/host.js","lineNumber":33,"sourceCode":"        if (!Array.isArray(dataSchema)) {\n            throw new Error('Inspector data schema must be an array');\n        }\n\n        if (typeof uniqueId !== 'string' || !uniqueId.length) {\n            throw new Error('Inspector unique key is a required string');\n        }\n\n        if (options) {\n            if (typeof options !== 'object') {\n                throw new Error('options must be an object');\n            }\n\n            if (options.buttonText && typeof options.buttonText !== 'string') {\n                throw new Error('options.buttonText must be a string');\n            }\n\n            if (options.size && typeof options.size !== 'string') {\n                throw new Error('options.size must be a string');\n            }\n\n            if (options.description && typeof options.description !== 'string') {\n                throw new Error('options.description must be a string');\n            }\n\n            if (options.resizableWidth && typeof options.resizableWidth !== 'boolean') {\n                throw new Error('options.resizableWidth must be boolean');\n            }\n\n            if (options.beforeApplyCallback && typeof options.beforeApplyCallback !== 'function') {\n                throw new Error('options.beforeApplyCallback must be a function');\n            }\n\n            if (options.liveMode && typeof options.liveMode !== 'boolean') {\n                throw new Error('options.liveMode must be boolean');\n            }\n        }","sourceCodeStart":15,"sourceCodeEnd":51,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/vuecomponents/inspector/assets/js/classes/host.js#L15-L51","documentation":"Thrown by a guard clause inside showModal when options is provided but options.size is neither null/undefined nor a string. It fires during host-component option validation in the Inspector, meaning the caller passed a malformed size option (e.g. a number or object) for the modal.","triggerScenarios":"Thrown at modules/backend/vuecomponents/inspector/assets/js/classes/host.js:33 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass options.size as a string (e.g. 'large', 'small') or omit it entirely","Coerce numeric sizes to strings before calling showModal","Check the upstream caller that builds the options object and fix the value it assigns to size"],"exampleFix":null,"handlingStrategy":"type-guard","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"}