octobercms/october · error · Error
options must be an object
Error message
options must be an object
What it means
Error "options must be an object" thrown in octobercms/october.
Source
Thrown at modules/backend/vuecomponents/modal/assets/js/classes/utils.js:8
/*
* Modal utilities helper
*/
export class ModalUtils {
#validateAlertOptions(options) {
if (options) {
if (typeof options !== 'object') {
throw new Error('options must be an object');
}
if (options.buttonText && typeof options.buttonText !== 'string') {
throw new Error('options.buttonText must be a string');
}
if (options.size && typeof options.size !== 'string') {
throw new Error('options.size must be a string');
}
}
return options || {};
}
#validateBasicArguments(title, text) {
if (typeof title !== 'string' || !title.length) {
throw new Error('Modal title is required');
}View on GitHub (pinned to b608633a7e)
When it happens
Trigger: Thrown at modules/backend/vuecomponents/modal/assets/js/classes/utils.js:8 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of octobercms/october@b608633a7e (2026-08-21).
Data as JSON: /api/errors/838a3d5a4eac1c49.
Report an issue: GitHub.