sveltejs/kit · info

- ${warning}

Error message

  - ${warning}

What it means

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].

Source

Thrown at packages/kit/src/core/sync/write_tsconfig/index.js:149

	const warnings = validate_resolved_config(
		dir,
		resolved,
		options.paths,
		options.types,
		options.exclusions
	);

	if (warnings.length > 0) {
		console.warn(
			styleText(
				['bold', 'yellow'],
				`Found issues while validating ${path.relative(process.cwd(), user_config.file)}`
			)
		);

		for (const warning of warnings) {
			console.warn(`  - ${warning}`);
		}
	}
}

/** @type {Map<string, number>} */
const mtimes = new Map();

/**
 * Returns true if the file was modified since we last got here,
 * otherwise we can skip warnings
 * @param {string} file
 */
function modified_since_last_check(file) {
	const a = mtimes.get(file) ?? -1;
	const b = fs.statSync(file).mtimeMs;
	mtimes.set(file, b);

	return b > a;

View on GitHub (pinned to 03f1687fe6)

Solutions

  1. Apply the fix described on each `- warning` line
  2. Reset tsconfig to extends-only form, then re-add custom options carefully
  3. Run `svelte-kit sync` to verify all warnings are resolved

Example fix

// before: - Invalid exclude pattern 'node_modules/*'
// after (tsconfig.json)
{ "extends": "./.svelte-kit/tsconfig.json", "exclude": ["node_modules/**"] }
Defensive patterns

Strategy: validation

Validate before calling

import { execSync } from 'node:child_process';
const out = execSync('svelte-kit sync 2>&1').toString();
if (/Found issues while validating/.test(out)) process.exit(1);

Prevention

When it happens

Trigger: Any tsconfig mismatch collected by the validator (compilerOptions, paths, types, exclusions) — one console.warn line per issue.

Common situations: Same as [354]: conflicting overrides, missing aliases, wrong excludes.

Related errors


AI-assisted analysis of sveltejs/kit@03f1687fe6 (2026-09-02). Data as JSON: /api/errors/a3ee88ac1f816da3. Report an issue: GitHub.