+
Skip to content

Dependency Conflict: path-to-regexp version mismatch between @modelcontextprotocol/sdk and catalyst-core #75

@mayansharma

Description

@mayansharma

Description

When adding @modelcontextprotocol/sdk to a Catalyst app, a TypeError: Missing parameter name at 1 error occurs due to conflicting versions of the path-to-regexp dependency, so creating a package.json template in create-catalyst-app with both packages won't work

Cause

The issue stems from incompatible versions of path-to-regexp being used by different packages:

• catalyst-core@0.0.1-beta.14 → express@4.21.2 → path-to-regexp@0.1.12 (legacy version)
• @modelcontextprotocol/sdk@1.13.0 → express@5.1.0 → router@2.2.0 → path-to-regexp@8.2.0 (modern version)

Workaround

Installing @modelcontextprotocol/sdk after other packages resolves the issue by ensuring proper dependency resolution order
Instead of adding both packages in a template package.json, the script would later install the @modelcontextprotocol/sdk package after an initial package-lock.json has been constructed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载