Interactive Prompt Fails (No TTY)
Symptom: command exits with guidance about interactive prompts requiring a TTY.
Actions:
- Re-run using explicit flags and
--yes. - Provide required values (for example
create <project-path>oradd --preset form). - Use dry-run first if you want to inspect planned changes.
create --yes Without Project Path
Symptom: create requires [project-path] when using --yes.
Actions:
- Run interactive create (
lattice create/pnpm lattice create) when non-interactive mode is not required. - If you keep
--yes, provideproject-pathexplicitly.
init Outside a Project Root
Symptom: init fails because the CLI cannot find package.json from the current working directory.
Actions:
- Run the command from the repo root that owns the target
package.json. - Confirm the project already exists before using
init; usecreatefor a new directory. - Re-run with
--dry-runfirst after moving to the correct root.
Conflicting Lint Flags
Symptom: Cannot use --lint and --no-lint together.
Actions:
- Keep exactly one of those flags on
create. - Omit both flags if you want interactive/default behavior.
remove --yes Without Selection
Symptom: no components selected error in non-interactive mode.
Actions:
- Provide at least one component name and/or preset.
- Or drop
--yesto select interactively.
Global CLI
lattice remove dialog --yes
Monorepo Local Script
pnpm lattice remove dialog --yes
Package Manager and Lockfile Drift
Symptom: doctor reports multiple lockfiles or package-manager mismatch warnings.
Actions:
- Keep one lockfile in project root.
- Align
packageManagerinpackage.jsonwith active lockfile manager. - Re-run
doctor.
doctor Warnings vs Errors
- Warnings: command succeeds but reports non-blocking issues.
- Errors: command fails; required provider conditions are not satisfied.
Typical recovery loop:
- Run
doctor. - Apply recommended commands shown under
Recommended Commands. - Re-run
doctoruntil warnings/errors are resolved.