Skip to content

v1.3.0 does not work with Sanity v5 #26

@som-R91

Description

@som-R91

The package.json in @focus-reactive/sanity-plugin-inline-svg-input@1.3.0 lists this under "peer dependencies":-

  "peerDependencies": {
    "@sanity/ui": "^1 || ^2",
    "react": "^18 || ^19",
    "sanity": "^3 || ^4 || ^5",
    "styled-components": "^5 || ^6"
  },

Yet I am getting this error when I run npm install @focus-reactive/sanity-plugin-inline-svg-input :-

C:\Users\ABC\Projects\Personal-Website>npm install @focus-reactive/sanity-plugin-inline-svg-input
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: personal-website@3.1.3
npm error Found: sanity@5.11.0
npm error node_modules/sanity
npm error   sanity@"^5.7.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer sanity@"^3 || ^4" from @focus-reactive/sanity-plugin-inline-svg-input@1.3.0
npm error node_modules/@focus-reactive/sanity-plugin-inline-svg-input
npm error   @focus-reactive/sanity-plugin-inline-svg-input@"*" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.

And I tried with an override on this package in my project's package.json, but that also threw the same error.

  "overrides": {
    ...
    "@focus-reactive/sanity-plugin-inline-svg-input": {
      "sanity": "^5"
    }
  }

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