cache not found in react
Unanswered
Madeiran sardinella posted this in #help-forum
Madeiran sardinellaOP
Hello! We're running 14.2.4 and are running into a weird issue when using import { cache } from 'react'; It seems that the version we are currently running for the types is the last version supported as anytime we update the types, we get the same error as shown here for Module react has no exported member cache: https://github.com/vercel/next.js/issues/49707
Even with the current versions we are running, we have to ignore an eslint issue with cache not being found, but with upgrading at all, we get the ts error. Here are our current relevant versions from package.json:
I have found several issues on this, but the accepted answers to upgrade your versions or add next to your tsconfig do not help. Appreciate any assistance on this as we would like to upgrade our packages if possible.
Even with the current versions we are running, we have to ignore an eslint issue with cache not being found, but with upgrading at all, we get the ts error. Here are our current relevant versions from package.json:
"next": "14.2.4",
"react": "18.3.1",
"react-dom": "18.3.1",
"@types/react": "18.2.72",
"@types/react-dom": "18.2.22",I have found several issues on this, but the accepted answers to upgrade your versions or add next to your tsconfig do not help. Appreciate any assistance on this as we would like to upgrade our packages if possible.