#how to deal with uploadstuff and react 19
3 messages · Page 1 of 1 (latest)
The knowledge sources indicate that there are known issues with the uploadstuff package when used with React 19, especially in Convex and Vercel environments. Specifically, the package currently has a peer dependency on React 18, which leads to npm dependency resolution errors (ERESOLVE) when you try to use it with React 19. This is a common scenario when a package hasn't yet updated its peer dependencies to support the latest React version.
A community member reported a similar issue and mentioned submitting a pull request to address it, but there is no confirmation in the sources that an official fix has been released yet. The recommended workaround in such cases is to use npm with the --force or --legacy-peer-deps flag to bypass the peer dependency conflict. However, this may result in an unstable or broken dependency tree, so proceed with caution:
npm install --legacy-peer-deps
# or
npm install --force
There is no mention of a fully compatible alternative to uploadstuff for React 19 in the provided knowledge sources, nor is there a confirmed update or fix for the package at this time. If you need to proceed immediately, using the workaround above is your best option, but keep in mind the potential for runtime issues until the package officially supports React 19.
For more details, see the relevant discussion: Issue with uploadstuff Package Breaking Builds on Convex and Vercel.
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
@chrome raven Kapa.ai is still learning and improving, please let me know how I did by reacting below.