ModuleDependencyError: export 'useRef' (imported as 'React') was not found in 'react'
Using tanstack version
4.24.9, React 18.2.0 and Next 13.1.1. Initially had it in a turborepo monorepo, but even when standalone and installed via node18 still get this error4 Replies
vicious-gold•3y ago
app directory?
metropolitan-bronzeOP•3y ago
yep app directory..
vicious-gold•3y ago
GitHub
Doesn't work out of the box with next 13 · Issue #4933 · TanStack/q...
Describe the bug when adding react-query to next 13 i get following error when running error - ./node_modules/@tanstack/react-query/build/lib/Hydrate.mjs Attempted import error: 'useRef&...
metropolitan-bronzeOP•3y ago
thank you @TkDodo 🔮, will have a look. And it's reminder to check issues first before asking questions 🙂