Skip to content

cognee-cli -ui v0.5.5: Frontend fails to compile — 3 missing npm dependencies in package.json #2413

@acsezen

Description

@acsezen

Summary

Running cognee-cli -ui with cognee v0.5.5 (pip) results in a 500 error on every frontend request. The Next.js dev server fails to compile because three npm packages are imported in source files but not declared in cognee-frontend/package.json.

Missing dependencies

Package Imported in
react-markdown src/ui/elements/Notebook/MarkdownPreview.tsx
ngraph.graph src/ui/rendering/animate.ts, src/ui/rendering/graph/createGraph.ts
ngraph.forcelayout src/ui/rendering/animate.ts

Steps to reproduce

pip install cognee==0.5.5
cognee-cli -ui
# Backend starts on :8000 ✓
# MCP starts on :8001 ✓
# Frontend assets downloaded from GitHub release v0.5.5 ✓
# npm install runs ✓
# Next.js starts on :3000 ✓
# First page load → 500 ✗

Error output

[FRONTEND] ⨯ ./src/ui/elements/Notebook/MarkdownPreview.tsx:2:1
Module not found: Can't resolve 'react-markdown'

Environment

  • cognee 0.5.5 (pip)
  • Python 3.12.12
  • Linux 6.17.0-19-generic (Ubuntu 24.04)
  • Next.js 16.1.6 (Turbopack)

Notes

  • On current main branch, react-markdown appears to be declared in cognee-frontend/package.json, suggesting the v0.5.5 release tag was cut before this fix landed.
  • The cognee-mcp:main Docker image reports cognee_version=0.5.2 while the pip package is 0.5.5 (related: [Bug]: s3fs module is missing from Cognee MCP Docker image #1681).
  • On Linux without Docker Desktop, host.docker.internal doesn't resolve — the MCP startup log warns about this but the CLI doesn't add --add-host host.docker.internal:host-gateway automatically.

Workaround

cd ~/.cognee/ui-cache/frontend
npm install react-markdown ngraph.graph ngraph.forcelayout

Then restart cognee-cli -ui.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions