discourse/discourse · error · BlockError
${typeError.message}
Error message
${typeError.message} What it means
Error "${typeError.message}" thrown in discourse/discourse.
Source
Thrown at frontend/discourse/app/lib/blocks/-internals/validation/args.ts:1121
);
}
}
for (const [argName, argDef] of Object.entries(schema)) {
const value = providedArgs[argName];
// 2. Check required args
if (argDef.required && value === undefined) {
throw new BlockError(`missing required ${pathPrefix}.${argName}.`, {
path: `${pathPrefix}.${argName}`,
});
}
// 3. Validate type if value is provided
if (value !== undefined) {
const typeError = validateArgValue(value, argDef, argName, options);
if (typeError) {
throw new BlockError(typeError.message, {
path: `${pathPrefix}.${typeError.path}`,
});
}
}
}
}
View on GitHub (pinned to 1b2d7253e8)
When it happens
Trigger: Thrown at frontend/discourse/app/lib/blocks/-internals/validation/args.ts:1121 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of discourse/discourse@1b2d7253e8 (2026-08-26).
Data as JSON: /api/errors/227fc649e9135eb2.
Report an issue: GitHub.