Skip to content

(bug) Unable to resolve "@modelcontextprotocol/sdk/client/index" #511

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

Open
thearyanag opened this issue May 18, 2025 · 3 comments
Open

(bug) Unable to resolve "@modelcontextprotocol/sdk/client/index" #511

thearyanag opened this issue May 18, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@thearyanag
Copy link

Describe the bug
Trying to integrate into a react native project, and getting

Unable to resolve "@modelcontextprotocol/sdk/client/index.js" from "src/hooks/useChat.ts"

when importing

import { Client } from "@modelcontextprotocol/sdk/client/index.js";

To Reproduce
Steps to reproduce the behavior:

  1. Install @modelcontextprotocol/sdk in any react native project
  2. Try to import the sdk in any random TS file

Expected behavior
A clear and concise description of what you expected to happen.
I expect it to import properly

@thearyanag thearyanag added the bug Something isn't working label May 18, 2025
@PhoneixT
Copy link

+1

2 similar comments
@kanishq1
Copy link

+1

@ms-sch
Copy link

ms-sch commented May 22, 2025

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants