Skip to content

Module not found: Can't resolve '@ag-ui/langgraph' #2

@nitin27may

Description

@nitin27may

Running on Windows 11

Tried with Nodejs
22.11.0 and
20.18.0

getting errror Module not found: Can't resolve '@ag-ui/langgraph'

I installed in explicitly then getting UUID issue

npm run dev

> [email protected] dev
> concurrently "npm run dev:ui" "npm run dev:agent" --names ui,agent --prefix-colors blue,green --kill-others

[agent]
[agent] > [email protected] dev:agent
[agent] > scripts\run-agent.bat
[agent]
[ui]
[ui] > [email protected] dev:ui
[ui] > next dev --turbopack
[ui]
[ui]    ▲ Next.js 15.3.2 (Turbopack)
[ui]    - Local:        http://localhost:3000
[ui]    - Network:      http://192.168.68.24:3000
[ui]
[ui]  ✓ Starting...
[agent] INFO:     Will watch for changes in these directories: ['E:\\poc\\with-microsoft-agent-framework-python\\agent']
[agent] INFO:     Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
[agent] INFO:     Started reloader process [46876] using StatReload
[agent] INFO:     Started server process [38612]
[agent] INFO:     Waiting for application startup.
[agent] INFO:     Application startup complete.
[ui]  ✓ Ready in 6.8s
[ui]  ○ Compiling / ...
[ui]  ✓ Compiled / in 5.6s
[ui]  GET / 200 in 6501ms
[ui]  ⚠ Cross origin request detected from 192.168.68.24 to /_next/* resource. In a future major version of Next.js, you will need to explicitly configure "allowedDevOrigins" in next.config to allow this.
[ui] Read more: https://nextjs.org/docs/app/api-reference/config/next-config-js/allowedDevOrigins
[ui]  ○ Compiling /favicon.ico ...
[ui]  GET /favicon.ico?favicon.45db1c09.ico 200 in 1564ms
[ui]  ✓ Compiled /favicon.ico in 5.1s
[ui]  ⨯ ./node_modules/@copilotkit/runtime/dist/index.js:8168:24
[ui] Module not found: Can't resolve '@ag-ui/langgraph'
[ui]   8166 | var import_client = require("@ag-ui/client");
[ui]   8167 | var import_rxjs6 = require("rxjs");
[ui] > 8168 | var import_langgraph = require("@ag-ui/langgraph");
[ui]        |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ui]   8169 | var CustomEventNames2;
[ui]   8170 | (function(CustomEventNames3) {
[ui]   8171 |   CustomEventNames3["CopilotKitManuallyEmitMessage"] = "copilotkit_manually_emit_message";
[ui]
[ui]
[ui]
[ui] https://nextjs.org/docs/messages/module-not-found
[ui]
[ui]
[ui]  ⨯ ./node_modules/@copilotkit/runtime/dist/index.js:8168:24
[ui] Module not found: Can't resolve '@ag-ui/langgraph'
[ui]   8166 | var import_client = require("@ag-ui/client");
[ui]   8167 | var import_rxjs6 = require("rxjs");
[ui] > 8168 | var import_langgraph = require("@ag-ui/langgraph");
[ui]        |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ui]   8169 | var CustomEventNames2;
[ui]   8170 | (function(CustomEventNames3) {
[ui]   8171 |   CustomEventNames3["CopilotKitManuallyEmitMessage"] = "copilotkit_manually_emit_message";
[ui]
[ui]
[ui]
[ui] https://nextjs.org/docs/messages/module-not-found
[ui]
[ui]
[ui]  ⨯ ./node_modules/@copilotkit/runtime/dist/index.js:8168:24
[ui] Module not found: Can't resolve '@ag-ui/langgraph'
[ui]   8166 | var import_client = require("@ag-ui/client");
[ui]   8167 | var import_rxjs6 = require("rxjs");
[ui] > 8168 | var import_langgraph = require("@ag-ui/langgraph");
[ui]        |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ui]   8169 | var CustomEventNames2;
[ui]   8170 | (function(CustomEventNames3) {
[ui]   8171 |   CustomEventNames3["CopilotKitManuallyEmitMessage"] = "copilotkit_manually_emit_message";
[ui]
[ui]
[ui]
[ui] https://nextjs.org/docs/messages/module-not-found
[ui]
[ui]
[ui]  ○ Compiling /_error ...
[ui]  ✓ Compiled /_error in 1090ms
[ui]  POST /api/copilotkit 500 in 7138ms
[ui]  POST /api/copilotkit 500 in 7145ms
[ui]  POST /api/copilotkit 500 in 7157ms

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