#@ag-ui/client removed from @copilotkit/runtime 1.10.6 causes Module not found: Can't resolve @ag-ui

1 messages · Page 1 of 1 (latest)

gusty siloBOT
#

To save your precious dev time, this solution has been AI generated

It appears that @ag-ui/client was not intentionally removed from @copilotkit/runtime in version 1.10.6, and its absence is likely not by design.


Details

  • Dependency Status:
    • @ag-ui/client is still listed as a dependency and peerDependency in recent versions of @copilotkit/runtime.
    • The package is actively imported and used in the runtime source code (e.g., in files like agui-action.ts, copilot-runtime.ts, and others).

Why You See the Error

  • The error Module not found: Can't resolve @ag-ui usually means the package is not installed in your project.
  • Since @ag-ui/client is a peer dependency, you must install it manually in your project:
    npm install @ag-ui/client@^0.0.39
    # or
    yarn add @ag-ui/client@^0.0.39
    
  • If you already installed it, try clearing your package manager cache and reinstalling dependencies.

Recommendation

Check your package.json and node_modules to ensure @ag-ui/client is present. If not, install it as shown above. The removal was not intentional, so installing the dependency should resolve your issue.

Was this helpful?

If this solution worked for you, please click on the appropriate option below to help us improve:

#

Thank you for your feedback! Our team will provide additional assistance. 🔄

barren widget
#

It seems all @ag-ui libraries are not present in the dependency list