{"record":{"id":"a3ee88ac1f816da3","repo":"sveltejs/kit","slug":"warning","errorCode":null,"errorMessage":"  - ${warning}","messagePattern":"  - \\$\\{warning\\}","errorType":"console","errorClass":null,"httpStatus":null,"severity":"info","filePath":"packages/kit/src/core/sync/write_tsconfig/index.js","lineNumber":149,"sourceCode":"\n\tconst warnings = validate_resolved_config(\n\t\tdir,\n\t\tresolved,\n\t\toptions.paths,\n\t\toptions.types,\n\t\toptions.exclusions\n\t);\n\n\tif (warnings.length > 0) {\n\t\tconsole.warn(\n\t\t\tstyleText(\n\t\t\t\t['bold', 'yellow'],\n\t\t\t\t`Found issues while validating ${path.relative(process.cwd(), user_config.file)}`\n\t\t\t)\n\t\t);\n\n\t\tfor (const warning of warnings) {\n\t\t\tconsole.warn(`  - ${warning}`);\n\t\t}\n\t}\n}\n\n/** @type {Map<string, number>} */\nconst mtimes = new Map();\n\n/**\n * Returns true if the file was modified since we last got here,\n * otherwise we can skip warnings\n * @param {string} file\n */\nfunction modified_since_last_check(file) {\n\tconst a = mtimes.get(file) ?? -1;\n\tconst b = fs.statSync(file).mtimeMs;\n\tmtimes.set(file, b);\n\n\treturn b > a;","sourceCodeStart":131,"sourceCodeEnd":167,"githubUrl":"https://github.com/sveltejs/kit/blob/03f1687fe612ce3d2d9131139b5b188d9cf90c64/packages/kit/src/core/sync/write_tsconfig/index.js#L131-L167","documentation":"The per-item detail line printed under the tsconfig validation header: each invalid setting found in the user's tsconfig is listed as `  - <warning>`. It is purely informational output accompanying error [354].","triggerScenarios":"Any tsconfig mismatch collected by the validator (compilerOptions, paths, types, exclusions) — one console.warn line per issue.","commonSituations":"Same as [354]: conflicting overrides, missing aliases, wrong excludes.","solutions":["Apply the fix described on each `- warning` line","Reset tsconfig to extends-only form, then re-add custom options carefully","Run `svelte-kit sync` to verify all warnings are resolved"],"exampleFix":"// before: - Invalid exclude pattern 'node_modules/*'\n// after (tsconfig.json)\n{ \"extends\": \"./.svelte-kit/tsconfig.json\", \"exclude\": [\"node_modules/**\"] }","handlingStrategy":"validation","validationCode":"import { execSync } from 'node:child_process';\nconst out = execSync('svelte-kit sync 2>&1').toString();\nif (/Found issues while validating/.test(out)) process.exit(1);","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Treat sync output warnings as errors in CI pipelines","Maintain tsconfig via the generated file, not manual edits"],"tags":["typescript","tsconfig","validation"],"backgroundTag":"tsconfig-validation-failed","analyzedSha":"03f1687fe612ce3d2d9131139b5b188d9cf90c64","analyzedAt":"2026-09-02T02:01:50.504Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T06:17:21.866Z"}