{"record":{"id":"8c0cb7ca0d642a35","repo":"GoogleChrome/lighthouse","slug":"pluginname-has-no-valid-auditsrefs","errorCode":null,"errorMessage":"${pluginName} has no valid auditsRefs.","messagePattern":"(.+?) has no valid auditsRefs\\.","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"core/config/config-plugin.js","lineNumber":103,"sourceCode":"\n      if (typeof path !== 'string') {\n        throw new Error(`${pluginName} has a missing audit path.`);\n      }\n      return {\n        path,\n      };\n    });\n  }\n\n  /**\n   * Extract and validate the list of category AuditRefs added by the plugin.\n   * @param {unknown} auditRefsJson\n   * @param {string} pluginName\n   * @return {Array<LH.Config.AuditRefJson>}\n   */\n  static _parseAuditRefsList(auditRefsJson, pluginName) {\n    if (!isArrayOfUnknownObjects(auditRefsJson)) {\n      throw new Error(`${pluginName} has no valid auditsRefs.`);\n    }\n\n    return auditRefsJson.map(auditRefJson => {\n      const {id, weight, group, ...invalidRest} = auditRefJson;\n      assertNoExcessProperties(invalidRest, pluginName, 'auditRef');\n\n      if (typeof id !== 'string') {\n        throw new Error(`${pluginName} has an invalid auditRef id.`);\n      }\n      if (typeof weight !== 'number') {\n        throw new Error(`${pluginName} has an invalid auditRef weight.`);\n      }\n      if (typeof group !== 'string' && typeof group !== 'undefined') {\n        throw new Error(`${pluginName} has an invalid auditRef group.`);\n      }\n\n      const prependedGroup = group ? `${pluginName}-${group}` : group;\n      return {","sourceCodeStart":85,"sourceCodeEnd":121,"githubUrl":"https://github.com/GoogleChrome/lighthouse/blob/9515cd4e58ebed69f78742d932b501c2cab8ad8f/core/config/config-plugin.js#L85-L121","documentation":"Error \"${pluginName} has no valid auditsRefs.\" thrown in GoogleChrome/lighthouse.","triggerScenarios":"Thrown when a plugin category defines no valid auditRefs.","commonSituations":"See trigger scenarios.","solutions":["Add an `auditRefs` array to the plugin's category with at least one entry, e.g. auditRefs: [{id: 'my-audit', weight: 1}].","Make sure the auditRefs array is not empty and contains valid objects."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9515cd4e58ebed69f78742d932b501c2cab8ad8f","analyzedAt":"2026-08-13T06:28:10.346Z","schemaVersion":2},"datasetVersion":"2026-08-13T09:17:06.757Z"}