Skip to content

Dependency Conflict: @rjsf Package Version Mismatch #853

@PrinceMalviyaDev

Description

@PrinceMalviyaDev

Description:
While setting up the project locally, npm install fails due to a dependency conflict between @rjsf packages.

Error:

ERESOLVE unable to resolve dependency tree
Found: @rjsf/utils@6.0.0-beta.10
peer @rjsf/utils@"^5.24.x" from @rjsf/validator-ajv8@5.24.13

Cause:
The project currently uses:

  • @rjsf/core → 6.0.0-beta.10
  • @rjsf/utils → 6.0.0-beta.10
  • @rjsf/validator-ajv8 → 5.24.13

@rjsf/validator-ajv8 v5 requires @rjsf/utils v5, but the project uses v6, causing installation failure.

Suggested Fix:
Align all @rjsf packages to the same major version:

  • Either upgrade @rjsf/validator-ajv8 to 6.0.0-beta
  • Or downgrade all @rjsf packages to 5.24.x

Environment:

  • Node: (run node -v)
  • npm: (run npm -v)
  • OS: Windows

Additional Context:
The project does not include a package-lock.json, so fresh installs fail due to this conflict.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions