{"record":{"id":"f162dcb49908fb9f","repo":"octobercms/october","slug":"options-buttontext-must-be-a-string","errorCode":null,"errorMessage":"options.buttonText must be a string","messagePattern":"options\\.buttonText must be a string","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"modules/backend/vuecomponents/inspector/assets/js/classes/host.js","lineNumber":29,"sourceCode":"        if (parentObj !== undefined && typeof parentObj !== 'object') {\n            throw new Error('Inspector Parent Object must be an object');\n        }\n\n        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","sourceCodeStart":11,"sourceCodeEnd":47,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/vuecomponents/inspector/assets/js/classes/host.js#L11-L47","documentation":"Error \"options.buttonText must be a string\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/vuecomponents/inspector/assets/js/classes/host.js:29 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"}