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
Description:
When importing from @modelcontextprotocol/sdk/types.js, a module resolution error occurs indicating that the import path cannot be resolved.
Error Message:
TypeError: Failed to resolve module specifier "@modelcontextprotocol/sdk/types.js".
Relative references must start with either "/", "./", or "../".
Stack Trace:
Uncaught TypeError TypeError: Failed to resolve module specifier "@modelcontextprotocol/sdk/types.js". Relative references must start with either "/", "./", or "../".
at (program) (e:\CodingAgent\void\src\vs\code\electron-sandbox\workbench\workbench.ts:308:1)
Environment:
VS Code Version: 1.99.0
@modelcontextprotocol/sdk Version: 1.7.0
Node.js type: "module" (ESM)
Issue Description:
The error occurs when trying to import the types.js module from @modelcontextprotocol/sdk package. This appears to be an ESM module resolution issue where the import path needs to use relative path syntax.
Steps to Reproduce:
Set "type": "module" in package.json
Install @modelcontextprotocol/sdk@1.7.0
Try to import from "@modelcontextprotocol/sdk/types.js"
The text was updated successfully, but these errors were encountered:
Description:
When importing from @modelcontextprotocol/sdk/types.js, a module resolution error occurs indicating that the import path cannot be resolved.
Error Message:
Stack Trace:
Environment:
Issue Description:
The error occurs when trying to import the types.js module from @modelcontextprotocol/sdk package. This appears to be an ESM module resolution issue where the import path needs to use relative path syntax.
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: