Deployment Errors on Vercel related to Tanstack NPM Packages

Does anybody have any experience resolving these types of errors? Not sure what to do and can't find anything online related.... Thanks!
7 Replies
theFern
theFernOP•3y ago
Here are my dependencies in case that's useful
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Ambushfall
Ambushfall•3y ago
You basically imported React query into Dependency from tanstack, while that library is used as a Dev Dependency by trpc/next. Conflicting versions. Remove the import, or reformat code. (Basically, you're importing 2 of the same thing, albeit one in dev and one in build). Not sure 100% how to resolve the issue though
theFern
theFernOP•3y ago
thanks so much for the insight guys!
Ambushfall
Ambushfall•3y ago
Hey @theFern did you get around resolving the issue? I've read a bit on it and it seems you're just supposed to change the numbers in dependencies, whether or not they accept a lower version etc.
theFern
theFernOP•3y ago
@lukacolic So it seems the dependency that was causing the issue was react-query dev tools. I uninstalled the library and that solved the issue. Not sure if there's a way around this, otherwise I'll just have to uninstall it every time I want to deploy which is obviously not a good solution. I'll give your last solution a try next time I deploy. Thanks!
Ambushfall
Ambushfall•3y ago
alrighty, cheers ! 😄
Want results from more Discord servers?
Add your server