{"record":{"id":"4f6a7740890de9ad","repo":"sveltejs/kit","slug":"message-n-n-summary-n-n-suggestion","errorCode":null,"errorMessage":"${message}\\n\\n${summary}\\n\\n${suggestion}","messagePattern":"(.+?)\\\\n\\\\n(.+?)\\\\n\\\\n(.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"packages/kit/src/runtime/client/remote-functions/form.svelte.js","lineNumber":184,"sourceCode":"\t\t\tunread_issues = raw_issues;\n\n\t\t\tsetTimeout(() => {\n\t\t\t\tif (unread_issues === null) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (unread_issues.length > 0) {\n\t\t\t\t\tconst message = `Form submission had invalid data, but the validation issues were ignored:`;\n\t\t\t\t\tconst summary = unread_issues\n\t\t\t\t\t\t.map((issue) =>\n\t\t\t\t\t\t\tissue.path.length === 0\n\t\t\t\t\t\t\t\t? `  - ${issue.message}`\n\t\t\t\t\t\t\t\t: `  - ${issue.path.join('.')} (${issue.message})`\n\t\t\t\t\t\t)\n\t\t\t\t\t\t.join('\\n');\n\t\t\t\t\tconst suggestion = `Make sure you provide actionable feedback to users, using e.g. \\`myForm.fields.myField.issues()\\` or \\`myForm.fields.allIssues()\\``;\n\n\t\t\t\t\tconsole.warn(`${message}\\n\\n${summary}\\n\\n${suggestion}`);\n\t\t\t\t}\n\n\t\t\t\tunread_issues = null;\n\t\t\t});\n\t\t}\n\n\t\t/**\n\t\t * @param {FormData} form_data\n\t\t * @returns {Record<string, any>}\n\t\t */\n\t\tfunction convert(form_data) {\n\t\t\tconst data = convert_formdata(action_id_without_key, form_data);\n\t\t\tif (key !== undefined && !('id' in data)) {\n\t\t\t\tdata.id = key;\n\t\t\t}\n\t\t\treturn data;\n\t\t}\n","sourceCodeStart":166,"sourceCodeEnd":202,"githubUrl":"https://github.com/sveltejs/kit/blob/03f1687fe612ce3d2d9131139b5b188d9cf90c64/packages/kit/src/runtime/client/remote-functions/form.svelte.js#L166-L202","documentation":"SvelteKit remote forms validate inputs and collect `issues` (validation problems) that the client can read via `myForm.fields.myField.issues()` or `myForm.fields.allIssues()`. This DEV warning fires when a form submission produced validation issues but the client never read them, meaning the user receives no actionable feedback about why the form failed. The message combines a description, a summary of the unread issues (path + message per issue), and a suggestion.","triggerScenarios":"A remote form action returns validation issues (e.g. invalid fields) and, during DEV, the runtime's `warn_on_missing_issue_reads` (invoked from the form promise or preflight path) detects the issues were never consumed via `.issues()`/`allIssues()` before being discarded.","commonSituations":"Custom form UI that only checks success/failure and ignores field-level issues; migrating plain forms to remote forms without wiring up issue rendering; generic error toasts hiding validation detail.","solutions":["Read issues in your form UI: `myForm.fields.myField.issues()` or `myForm.fields.allIssues()`","Render issue messages next to the relevant fields for user feedback","If issues are intentionally ignored, read them anyway (or document why) to silence the DEV warning"],"exampleFix":"// before\nconst result = await createUser(data);\nif (!result.success) showToast('Something went wrong');\n// after\nconst result = await createUser(data);\nfor (const issue of result.fields.allIssues()) {\n  showFieldError(issue.path.join('.'), issue.message);\n}","handlingStrategy":"validation","validationCode":"const result = await myForm.submit(data); const issues = result?.fields?.allIssues?.() ?? []; if (issues.length) renderIssues(issues);","typeGuard":"const hasUnreadIssues = (r) => typeof r?.fields?.allIssues === 'function';","tryCatchPattern":null,"preventionTips":["Always read allIssues() after a submit that may fail validation","Render issue messages in the UI next to fields","Add a code-review checklist item: form failures must surface issues()"],"tags":["remote-functions","form","validation","issues","sveltekit"],"backgroundTag":"unread-form-validation-issues","analyzedSha":"03f1687fe612ce3d2d9131139b5b188d9cf90c64","analyzedAt":"2026-09-02T02:01:50.504Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T06:17:21.866Z"}