Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(frontend): break import cycle in lib/api.ts via type-only import (#59374)

Paul D'Ambra8f5f6bba2e6c
diff --git a/frontend/src/lib/api.ts b/frontend/src/lib/api.ts
index 9e9d7bfd3def..6330584eece9 100644
--- a/frontend/src/lib/api.ts
+++ b/frontend/src/lib/api.ts
@@ -244,7 +244,7 @@ import type {
} from 'products/workflows/frontend/Workflows/hogflows/types'
import { AgentMode } from '../queries/schema'
-import { MaxUIContext } from '../scenes/max/maxTypes'
+import type { MaxUIContext } from '../scenes/max/maxTypes'
import { AlertSimulationResult, AlertType, AlertTypeWrite } from './components/Alerts/types'
import {
ErrorTrackingFingerprint,