Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Open
@thearyanag

Description

@thearyanag

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions