Skip to content

v1.3.0 does not work with Sanity v5 #26

@som-R91

Description

@som-R91

The package.json in @focus-reactive/[email protected] 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: [email protected]
npm error Found: [email protected]
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/[email protected]
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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions