CLI and packaging error catalog¶
Quick lookup for common lessonkit failures. Exit codes: CLI reference — exit codes. Structured failures use --json (code, message, issues[]).
Exit codes¶
Code |
|
Meaning |
|---|---|---|
|
— |
Success |
|
|
Build failed, subprocess error, timeout |
|
|
Missing/invalid |
|
|
LXPack validation, parity errors, reserved paths |
Project discovery and manifest¶
Message (substring) |
Cause |
Fix |
|---|---|---|
|
Not in a LessonKit project directory |
|
|
Invalid JSON |
Fix syntax; validate with a JSON linter |
|
Wrong |
Set |
|
|
Use |
|
|
Fix |
|
Bad |
Use relative paths under project root; see Manifest reference |
|
Output under |
Change |
|
|
Keep paths relative without |
Build and dist¶
Message (substring) |
Cause |
Fix |
|---|---|---|
|
No Vite output |
Run |
|
Wrong |
Check Vite |
|
Build exited 0 but dist missing |
Inspect Vite config and build logs |
|
Vite/npm subprocess failure |
Fix build errors; raise |
Packaging and parity¶
Message (substring) |
Cause |
Fix |
|---|---|---|
|
LXPack validation (descriptor, assessments, paths) |
Read |
|
React |
Align |
|
Quiz in React not in manifest |
Add matching |
|
Manifest lesson not referenced in source |
Add |
|
No |
Add React source or fix manifest |
|
Symlink under |
Remove symlinks from source tree |
|
ID drift warnings treated as fatal |
Fix warnings or drop |
Init¶
Message (substring) |
Cause |
Fix |
|---|---|---|
|
|
Pick another name or remove directory |
|
|
Use an empty dir, dotfiles only, or |
|
|
Use |
|
Broken CLI install |
Reinstall |
|
Missing name argument |
|
Package flags¶
Message (substring) |
Cause |
Fix |
|---|---|---|
|
Missing |
|
|
Override path escapes root |
Use a path inside the project directory |
SCORM zip location¶
Default artifact after package:scorm12:
.lxpack/course/.lxpack/out/course-scorm12.zip
(relative to project root when using default paths). See LMS Go-Live — SCORM layout.