Skip to content

[Bug]: Conflicting antd version requirements between react-geo and geostyler #3401

@rdewit

Description

@rdewit

Current Behavior

Not too sure if it should be classified as a bug, but there is a version conflict when having @terrestris/react-geo and geostyler in one project (using their respective latest versions).

geostyler requires antd@^5.4.7 and @ant-design/icons@^5.0.1
@terrestris/react-geo requires antd@^4.17

Expected Behavior

Ideally there would be no npm conflicts between these packages.

Steps To Reproduce

  1. Have a project with both packages in the dependencies
  2. Run npm install

Version

@terrestris/react-geo 22.4.1
geostyler 13.1.0

What browsers are you seeing the problem on?

No response

Relevant log output

npm ERR! Found: antd@4.20.5
npm ERR! node_modules/antd
npm ERR!   antd@"4.20.5" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer antd@"5.x" from geostyler@13.1.0
npm ERR! node_modules/geostyler
npm ERR!   geostyler@"13.1.0" from the root project

Anything else?

It is possible to work around this by adding the following overrides to the package.json but it is not an ideal solution:

  "overrides": {
    "@ant-design/icons": "4.8.0",
    "antd": "4.24.12"
  }

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions