-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Description
Q&A (please complete the following information)
- OS: windows / linux
- Method of installation: npm
- Swagger-UI version: 5.31.0
Content & configuration
node v24.13.0
npmv11.6.2
Example Swagger/OpenAPI definition:
Describe the bug you're encountering
npm ls tree-sitter
our package
└─┬ swagger-ui@5.31.0
└─┬ swagger-client@3.36.0
└─┬ @swagger-api/apidom-reference@1.2.1
├─┬ @swagger-api/apidom-parser-adapter-json@1.2.1
│ ├─┬ tree-sitter-json@0.24.8
│ │ └── tree-sitter@0.21.1 deduped invalid: "=0.22.4" from node_modules/@swagger-api/apidom-parser-adapter-yaml-1-2
│ └── tree-sitter@0.22.4
└─┬ @swagger-api/apidom-parser-adapter-yaml-1-2@1.2.1
├─┬ @tree-sitter-grammars/tree-sitter-yaml@0.7.1
│ └── tree-sitter@0.21.1 deduped invalid: "=0.22.4" from node_modules/@swagger-api/apidom-parser-adapter-yaml-1-2, "^0.22.4" from node_modules/@swagger-api/apidom-parser-adapter-yaml-1-2/node_modules/@tree-sitter-grammars/tree-sitter-yaml
└── tree-sitter@0.21.1 invalid: "=0.22.4" from node_modules/@swagger-api/apidom-parser-adapter-yaml-1-2, "^0.22.4" from node_modules/@swagger-api/apidom-parser-adapter-yaml-1-2/node_modules/@tree-sitter-grammars/tree-sitter-yaml
npm error code ELSPROBLEMS
npm error invalid: tree-sitter@0.21.1 [...]\node_modules\tree-sitter
To reproduce...
Steps to reproduce the behavior:
npm i swagger-ui
npm ls --all or npm ls tree-sitter
Expected behavior
Screenshots
Additional context or thoughts
The pinned dependency in apidom-parser-adapter-yaml-1-2 is causing this error:
https://github.com/swagger-api/apidom/blob/main/packages/apidom-parser-adapter-yaml-1-2/package.json