mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-04 07:19:52 +00:00
fix(cli): make blank template a full HTML document
The blank template was a bare `<div>` fragment without `<!DOCTYPE>`, `<head>`, or `<body>`. This caused: - Blank preview (bundler/runtime can't initialize from a fragment) - "Failed to run lint" (parsing errors on the malformed document) All other templates (swiss-grid, vignelli, warm-grain, play-mode) are proper HTML documents — blank was the only outlier. Also improves lint error reporting to show the actual error message instead of the generic "Failed to run lint." Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
2915b68633
commit
d52ea88df5
@@ -388,8 +388,9 @@ export function StudioApp() {
|
||||
}
|
||||
|
||||
setLintModal(findings);
|
||||
} catch {
|
||||
setLintModal([{ severity: "error", message: "Failed to run lint." }]);
|
||||
} catch (err) {
|
||||
const msg = err instanceof Error ? err.message : String(err);
|
||||
setLintModal([{ severity: "error", message: `Failed to run lint: ${msg}` }]);
|
||||
} finally {
|
||||
setLinting(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user