query icon indicating copy to clipboard operation
query copied to clipboard

Unable to upgrade from v3 to v4

Open doberkofler opened this issue 4 years ago • 8 comments

Describe the bug

I have been trying to upgrade from v3 to v4 and wanted to install the new package as described in the documentation. Unfortunately the packages do not seem to exist:

npm i --save @tanstack/react-query
npm ERR! code ENOVERSIONS
npm ERR! No versions available for @tanstack/react-query

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/doberkofler/.npm/_logs/2022-07-19T13_08_25_064Z-debug-0.log

Your minimal, reproducible example

n.a.

Steps to reproduce

npm i --save @tanstack/react-query
npm ERR! code ENOVERSIONS
npm ERR! No versions available for @tanstack/react-query

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/doberkofler/.npm/_logs/2022-07-19T13_08_25_064Z-debug-0.log

Expected behavior

n.a.

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

macOS 12.4

react-query version

18.2.0

TypeScript version

4.7.4

Additional context

No response

doberkofler avatar Jul 19 '22 13:07 doberkofler

Same here, it was working couple of hours ago, now it is not.

pgs-gmartowski avatar Jul 19 '22 13:07 pgs-gmartowski

yeah we did "something", not sure what. Tanner and I are looking into it. sorry for that.

TkDodo avatar Jul 19 '22 13:07 TkDodo

Same problem...

npm i @tanstack/react-query
npm ERR! code ENOVERSIONS
npm ERR! No versions available for @tanstack/react-query

ghost avatar Jul 19 '22 13:07 ghost

With yarn

yarn add v1.22.17
[1/5] 🔍  Validating package.json...
[2/5] 🔍  Resolving packages...
error Received malformed response from registry for "@tanstack%2freact-query". The registry may be down.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

With pnpm

ERR_PNPM_MALFORMED_METADATA  Received malformed metadata for "@tanstack/react-query"

This might mean that the package was unpublished from the registry
Progress: resolved 3, reused 3, downloaded 0, added 0

ocho-cesar avatar Jul 19 '22 13:07 ocho-cesar

it's back at version 4.0.5. sorry for the trouble

TkDodo avatar Jul 19 '22 13:07 TkDodo

at least we can say: 4.0.3 worked fine, then 4.0.4 was not found, and 4.0.5 is back again. oh the irony 😆 . sorry again

TkDodo avatar Jul 19 '22 13:07 TkDodo

Thank you

doberkofler avatar Jul 19 '22 13:07 doberkofler

You should make 4.0.5 also available in the 'react-query' repo, switching to @tanstack breaks graphql codegen: https://github.com/dotansimha/graphql-code-generator/issues/8116

Maybe mirror the repo?

@TkDodo

Zerebokep avatar Jul 20 '22 10:07 Zerebokep