You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug Report: Incorrect exports Configuration Prevents Import of Submodules #70
Summary:
The exports configuration in @modelcontextprotocol/sdk's package.json causes import issues for submodules like @modelcontextprotocol/sdk/client. This results in TypeScript being unable to resolve the module without additional paths configuration in tsconfig.json.
Steps to Reproduce:
Create a new project:
mkdir temp-test
cd temp-test
npm init -y
npm install @modelcontextprotocol/sdk
I’m closing this bug report because the issue was entirely on my side. I forgot to set "type": "module" in my package.json, which caused the ES module imports to fail. My punishment is my embarrassment.
Thank you for your work on this library, and I apologize for any confusion caused!
Activity
jspahrsummers commentedon Nov 27, 2024
Thanks for the report! We'd be happy to review a PR fixing this issue, if you want to submit one. 🙏
MartinSchlott commentedon Nov 27, 2024
I’m closing this bug report because the issue was entirely on my side. I forgot to set "type": "module" in my package.json, which caused the ES module imports to fail. My punishment is my embarrassment.
Thank you for your work on this library, and I apologize for any confusion caused!
Merge pull request modelcontextprotocol#70 from modelcontextprotocol/…