{"record":{"id":"3696d72c4867e20b","repo":"deepseek-ai/deepseek-harness","slug":"client-modules-pkgname-exports-client-mus","errorCode":null,"errorMessage":"client-modules: ${pkgName} exports[\"./client\"] must be a string or an object with a string default","messagePattern":"client-modules: (.+?) exports\\[\"\\./client\"\\] must be a string or an object with a string default","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/client/modules/src/index.ts","lineNumber":158,"sourceCode":"  return {\n    platform: decl.platform,\n    ...(inject !== undefined ? { inject } : {}),\n    ...(external !== undefined ? { external } : {}),\n    ...(decl.immediately !== undefined ? { immediately: decl.immediately } : {}),\n  }\n}\n\n/** Resolve `exports[\"./client\"]` to a relative path, accepting the string and one-level conditional forms. */\nfunction clientExportOf(pkgName: string, exportsField: unknown): string | undefined {\n  if (typeof exportsField !== 'object' || exportsField === null) return undefined\n  const client = (exportsField as Record<string, unknown>)['./client']\n  if (client === undefined) return undefined\n  if (typeof client === 'string') return client\n  if (typeof client === 'object' && client !== null) {\n    const fallback = (client as Record<string, unknown>).default\n    if (typeof fallback === 'string') return fallback\n  }\n  throw new Error(`client-modules: ${pkgName} exports[\"./client\"] must be a string or an object with a string default`)\n}\n\n/** sha1 content hash shortened to 12 hex chars (bundle rev / graph rev). */\nfunction shortHash(input: string | Buffer): string {\n  return createHash('sha1').update(input).digest('hex').slice(0, 12)\n}\n\n/** Graph row for one bundle rev (url carries the rev as its cache-busting query). */\nfunction graphRow(id: string, rev: string, fields: WebBootRowFields): WebBootEntry {\n  return {\n    id,\n    url: `/plugins/${id}/client.js?rev=${rev}`,\n    rev,\n    ...(fields.inject !== undefined ? { inject: fields.inject } : {}),\n    ...(fields.immediately ? { immediately: true } : {}),\n    ...(fields.external.length > 0 ? { external: fields.external } : {}),\n  }\n}","sourceCodeStart":140,"sourceCodeEnd":176,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/client/modules/src/index.ts#L140-L176","documentation":"Error \"client-modules: ${pkgName} exports[\"./client\"] must be a string or an object with a string default\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/client/modules/src/index.ts:158 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set exports[./client] to a string or an object with a string default."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}