santifer/career-ops · error · Error
Template not found for kind=${kind} name=${chosen} (${fileFo
Error message
Template not found for kind=${kind} name=${chosen} (${fileFor(chosen)}) What it means
Error "Template not found for kind=${kind} name=${chosen} (${fileFor(chosen)})" thrown in santifer/career-ops.
Source
Thrown at cv-templates.mjs:148
dir = DEFAULT_TEMPLATES_DIR,
format = 'html',
profilePath = DEFAULT_PROFILE_PATH,
fallback = false,
} = opts;
assertFormat(format);
const explicit = Boolean(name && String(name).trim());
let chosen = kebab(explicit ? name : loadProfileDefault(kind, { profilePath }) || 'standard');
const fileFor = (n) => (n === 'standard' ? `${cfg.prefix}.${format}` : `${cfg.prefix}.${n}.${format}`);
let path = resolve(dir, fileFor(chosen));
if (!existsSync(path)) {
if (fallback && chosen !== 'standard') {
chosen = 'standard';
path = resolve(dir, fileFor(chosen));
}
if (!existsSync(path)) {
throw new Error(`Template not found for kind=${kind} name=${chosen} (${fileFor(chosen)})`);
}
}
if (format === 'html') {
const v = validateTemplate(path, kind);
if (!v.ok) {
throw new Error(
`Template ${fileFor(chosen)} missing required placeholders: ${v.missing.map((m) => `{{${m}}}`).join(', ')}`
);
}
}
return path;
}
// ---- CLI ----
const isMain = process.argv[1] && resolve(process.argv[1]) === fileURLToPath(import.meta.url);
if (isMain) {
const argv = process.argv.slice(2);
const cmd = argv[0];View on GitHub (pinned to 9b17a8ac97)
Solutions
- Restore the missing template file under templates/ from the repository.
- Or pick a template name that exists in templates/.
- Re-run node update-system.mjs apply to restore system files.
Example fix
git checkout -- templates/cv-template.html
When it happens
Trigger: Thrown at cv-templates.mjs:148 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of santifer/career-ops@9b17a8ac97 (2026-08-13).
Data as JSON: /api/errors/3fc81c61b435c4fb.
Report an issue: GitHub.