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/clientis 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-uiusually means the package is not installed in your project. - Since
@ag-ui/clientis 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: