Skip to content

Commit d4939f3

Browse files
Copilothotlong
andcommitted
fix: address code review feedback - doctor config display, troubleshooting typo
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 50fc65b commit d4939f3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

content/docs/guide/troubleshooting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This guide covers the most common issues you may encounter when working with Obj
99

1010
## 1. "Component type X not found"
1111

12-
**Symptom:** The `SchemaRenderer` renders nothing or shows a fallback, and the console logs `Component type "kanban-ui" not found in registry`.
12+
**Symptom:** The `SchemaRenderer` renders nothing or shows a fallback, and the console logs `component type "kanban-ui" not found in registry`.
1313

1414
**Cause:** The plugin that provides the component type has not been imported, so it never registered itself with the `ComponentRegistry`.
1515

packages/cli/src/commands/doctor.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ export async function doctor() {
5353
const tailwindConfigPath = join(cwd, 'tailwind.config.js');
5454
const tailwindTsPath = join(cwd, 'tailwind.config.ts');
5555
if (existsSync(tailwindConfigPath) || existsSync(tailwindTsPath)) {
56+
const configFile = existsSync(tailwindConfigPath) ? 'tailwind.config.js' : 'tailwind.config.ts';
5657
const configPath = existsSync(tailwindConfigPath) ? tailwindConfigPath : tailwindTsPath;
57-
console.log(chalk.green('✓ tailwind.config found'));
58+
console.log(chalk.green(`✓ ${configFile} found`));
5859
// Check content configuration
5960
try {
6061
const configContent = readFileSync(configPath, 'utf-8');

0 commit comments

Comments
 (0)