GoogleChrome/lighthouse · error · Error
${pluginName} has an invalid auditRef weight.
Error message
${pluginName} has an invalid auditRef weight. What it means
Error "${pluginName} has an invalid auditRef weight." thrown in GoogleChrome/lighthouse.
Source
Thrown at core/config/config-plugin.js:114
* Extract and validate the list of category AuditRefs added by the plugin.
* @param {unknown} auditRefsJson
* @param {string} pluginName
* @return {Array<LH.Config.AuditRefJson>}
*/
static _parseAuditRefsList(auditRefsJson, pluginName) {
if (!isArrayOfUnknownObjects(auditRefsJson)) {
throw new Error(`${pluginName} has no valid auditsRefs.`);
}
return auditRefsJson.map(auditRefJson => {
const {id, weight, group, ...invalidRest} = auditRefJson;
assertNoExcessProperties(invalidRest, pluginName, 'auditRef');
if (typeof id !== 'string') {
throw new Error(`${pluginName} has an invalid auditRef id.`);
}
if (typeof weight !== 'number') {
throw new Error(`${pluginName} has an invalid auditRef weight.`);
}
if (typeof group !== 'string' && typeof group !== 'undefined') {
throw new Error(`${pluginName} has an invalid auditRef group.`);
}
const prependedGroup = group ? `${pluginName}-${group}` : group;
return {
id,
weight,
group: prependedGroup,
};
});
}
/**
* Extract and validate the category added by the plugin.
* @param {unknown} categoryJson
* @param {string} pluginNameView on GitHub (pinned to 9515cd4e58)
Solutions
- Set each auditRef `weight` to a positive number.
- Remove or fix any auditRef with a missing or non-numeric weight.
When it happens
Trigger: Thrown when a plugin auditRef has a missing or non-numeric weight.
Common situations: See trigger scenarios.
AI-assisted analysis of GoogleChrome/lighthouse@9515cd4e58 (2026-08-13).
Data as JSON: /api/errors/8caba4952cdddb9d.
Report an issue: GitHub.