vishalbalaji / trpc-svelte-query-adapter

A simple adapter to use `@tanstack/svelte-query` with trpc, similar to `@trpc/react-query`.
71 stars 6 forks source link

`@typescript-eslint/eslint-plugin` and `@typescript-eslint/parser` peer dependency blocking upgrades in project #32

Closed fnimick closed 5 months ago

fnimick commented 6 months ago

Is this peer dependency necessary? (I'm genuinely not sure).

It's blocking linting upgrades in my project without applying --force to the install.

Example:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: trpc-svelte-query-adapter@2.2.5
npm ERR! Found: @typescript-eslint/eslint-plugin@7.1.1
npm ERR! node_modules/@typescript-eslint/eslint-plugin
npm ERR!   dev @typescript-eslint/eslint-plugin@"^7.1.1" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @typescript-eslint/eslint-plugin@"^6.10.0" from trpc-svelte-query-adapter@2.2.5
npm ERR! node_modules/trpc-svelte-query-adapter
npm ERR!   trpc-svelte-query-adapter@"^2.2.5" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: @typescript-eslint/eslint-plugin@6.21.0
npm ERR! node_modules/@typescript-eslint/eslint-plugin
npm ERR!   peer @typescript-eslint/eslint-plugin@"^6.10.0" from trpc-svelte-query-adapter@2.2.5
npm ERR!   node_modules/trpc-svelte-query-adapter
npm ERR!     trpc-svelte-query-adapter@"^2.2.5" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
vishalbalaji commented 5 months ago

Hey @fnimick, thanks for pointing this out! Should be resolved in v2.2.6.