{"record":{"id":"9a631289ea1f674a","repo":"sveltejs/kit","slug":"found-issues-while-validating-path-relative-proc","errorCode":null,"errorMessage":"Found issues while validating ${path.relative(process.cwd(), user_config.file)}","messagePattern":"Found issues while validating (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"packages/kit/src/core/sync/write_tsconfig/index.js","lineNumber":141,"sourceCode":"\t\t);\n\n\t\tconsole.warn(JSON.stringify(options.example, null, '  '));\n\n\t\treturn;\n\t}\n\n\tconst resolved = ts.parseJsonConfigFileContent(user_config.options, ts.sys, dir);\n\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","sourceCodeStart":123,"sourceCodeEnd":159,"githubUrl":"https://github.com/sveltejs/kit/blob/03f1687fe612ce3d2d9131139b5b188d9cf90c64/packages/kit/src/core/sync/write_tsconfig/index.js#L123-L159","documentation":"After syncing, SvelteKit validates the user tsconfig against expected compiler options, paths, and exclusions; if any `warnings` are produced it prints this header warning naming the tsconfig file. Individual issues follow on subsequent lines.","triggerScenarios":"`write_tsconfig` detects mismatches in tsconfig `compilerOptions`, `paths`, required `types` (e.g. missing `\"types\": [\"svelte\"]` style entries), or `exclude` patterns after the user config was loaded.","commonSituations":"Overriding `moduleResolution`, deleting generated path aliases ($lib, $app/*), or custom excludes that hide src routes; edits made after extend was added.","solutions":["Read the `- warning` lines that follow and fix each compilerOptions/paths/exclusions mismatch","Remove manual overrides that conflict with .svelte-kit/tsconfig.json and rely on extends","Re-run `svelte-kit sync` and confirm the warning is gone"],"exampleFix":"// before\n{ \"extends\": \"./.svelte-kit/tsconfig.json\", \"compilerOptions\": { \"verbatimModuleSyntax\": false } }\n// after\n{ \"extends\": \"./.svelte-kit/tsconfig.json\" }","handlingStrategy":"validation","validationCode":"// keep a lint check that tsconfig compilerOptions stay minimal\nconst allowed = ['extends'];\nconst extra = Object.keys(JSON.parse(readFileSync('tsconfig.json', 'utf8')).compilerOptions || {});\nif (extra.length > 0) console.warn('review overrides:', extra);","typeGuard":"const hasNoConflictingOverrides = (ts) => !ts?.compilerOptions || Object.keys(ts.compilerOptions).length === 0;","tryCatchPattern":null,"preventionTips":["Put custom compiler options in the parent extends chain, not beside it","Diff your tsconfig against the generated .svelte-kit/tsconfig.json after upgrades","Read every `- warning` line; fix all, not just the first"],"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"}