You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using a simple useUpdate in a of a model and have recently started getting: __privateGet(...).defaultMutationOptions is not a function and it crashes the whole page. Here's the whole callstack
Uncaught TypeError: __privateGet(...).defaultMutationOptions is not a function
at _a10.setOptions (chunk-JBUGR5HP.js?v=2759a9d4:5823:49)
at new _a10 (chunk-JBUGR5HP.js?v=2759a9d4:5812:10)
at chunk-JBUGR5HP.js?v=2759a9d4:6082:11
at mountState (chunk-2CEY6BTP.js?v=2759a9d4:12025:28)
at Object.useState (chunk-2CEY6BTP.js?v=2759a9d4:12565:24)
at Object.useState (chunk-BK6ZY4NC.js?v=2759a9d4:1066:29)
at useMutation (chunk-JBUGR5HP.js?v=2759a9d4:6081:30)
at useLog (chunk-JBUGR5HP.js?v=2759a9d4:9540:347)
at useUpdate (chunk-JBUGR5HP.js?v=2759a9d4:8683:253)
at AnchorShow (show.tsx:98:27) <-- my entrypoint
Also intermitantly getting the same error for a on a list item within a
Steps To Reproduce
Simple model detail view with a const { mutateAsync } = useUpdate();
Same with the delete, straight from the docs
Expected behavior
Not to crash
Packages
@refinedev/core
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Hey @daxaxelrod, can you list your other dependencies too? I think it happens if you are using react-query v5. If you are using v5, we don't support react-query v5 yet. You can find context here: #5370 (comment)
Closing the issue for now, feel free to re-open it if problem is different.
Thanks for the response! While i hadnt explicitly installed react query for our refine application, the app sits within a monorepo where 5.x was installed. Resolved!
Actually turning out to be a bit more involved. I installed trpc to the repo which is v11. Trpc is really nit picky about versions and needs to be on the same version across the stack. Our backend is also v11 (and cant be changed) which locks the frontend into needing to be v11, which has a hard requirement of react-query 5.xx
Describe the bug
Using a simple useUpdate in a of a model and have recently started getting:
__privateGet(...).defaultMutationOptions is not a function
and it crashes the whole page. Here's the whole callstackUncaught TypeError: __privateGet(...).defaultMutationOptions is not a function
at _a10.setOptions (chunk-JBUGR5HP.js?v=2759a9d4:5823:49)
at new _a10 (chunk-JBUGR5HP.js?v=2759a9d4:5812:10)
at chunk-JBUGR5HP.js?v=2759a9d4:6082:11
at mountState (chunk-2CEY6BTP.js?v=2759a9d4:12025:28)
at Object.useState (chunk-2CEY6BTP.js?v=2759a9d4:12565:24)
at Object.useState (chunk-BK6ZY4NC.js?v=2759a9d4:1066:29)
at useMutation (chunk-JBUGR5HP.js?v=2759a9d4:6081:30)
at useLog (chunk-JBUGR5HP.js?v=2759a9d4:9540:347)
at useUpdate (chunk-JBUGR5HP.js?v=2759a9d4:8683:253)
at AnchorShow (show.tsx:98:27) <-- my entrypoint
Also intermitantly getting the same error for a on a list item within a
Steps To Reproduce
Simple model detail view with a
const { mutateAsync } = useUpdate();
Same with the delete, straight from the docs
Expected behavior
Not to crash
Packages
Additional Context
No response
The text was updated successfully, but these errors were encountered: