Skip to content

fix: Dependency conflict: [email protected] not compatible with [email protected] #23

@BerrySeriousCoder

Description

@BerrySeriousCoder

Describe the bug

Currently the repo's package.json specifies:

  • date-fns: ^4.1.0
  • react-day-picker: ^8.10.1

However, [email protected] declares a peer dependency of
date-fns ^2.28.0 || ^3.0.0 and does not support v4.

To Reproduce

Steps to reproduce the behavior:

  1. Clone the repo
  2. Run npm install
  3. Installation fails with ERESOLVE dependency conflict.

Expected behavior

Dependencies should install cleanly without conflict.

Screenshots

Image

Environment

  • OS: Ubuntu 22.04
  • Browser: Chrome
  • Node version: v20.19.4
  • App version/commit: 4457957 (Sep 29, 2025)

Additional context

This seems to be caused by a dependency mismatch:

  • [email protected] has a peer dependency of date-fns ^2.28.0 || ^3.0.0
  • The repo currently specifies date-fns ^4.1.0, which is not supported yet.

Possible solutions:

  • Downgrade date-fns to ^3.x (e.g. 3.6.0), or
  • Upgrade react-day-picker once it adds support for date-fns v4.

For now, running npm install --legacy-peer-deps bypasses the error, but it may lead to runtime issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghacktoberfestIssues participating in Hacktoberfest

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions