Error headline followed by a few stack frames with file paths and amber line and column numbers.
Requires shadcn/ui initialized. Run npx shadcn@latest init if you haven't.
import { Code9 } from "@/components/beste/piece/code9";
<Code9
error="TypeError: Cannot read 'name' of undefined"
frames={[
{
"fn": "greet",
"file": "src/utils.ts",
"line": 14,
"column": 12
},
{
"fn": "handler",
"file": "src/server.ts",
"line": 42,
"column": 8
},
{
"fn": "processRequest",
"file": "src/api.ts",
"line": 88,
"column": 4
}
]}
/>