Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module error in @anthropic-ai/sdk/src/lib/MessageStream.ts #683

Open
qnxdev opened this issue Feb 12, 2025 · 1 comment
Open

Comments

@qnxdev
Copy link

qnxdev commented Feb 12, 2025

Cannot find module '../resources/messages.js' or its corresponding type declarations.ts(2307)

node_modules/@anthropic-ai/sdk/src/lib/MessageStream.ts:13 should have } from "../resources/messages/index.js";

Wrong import path is used currently in lib/MessageStream.ts

Image

@RobertCraigie
Copy link
Collaborator

Do you have an import ... from '@anthropic-ai/sdk/src' somewhere? I suspect that is why this issue is happening, it should be just '@anthropic-ai/sdk'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants