watchInternal is not a function in react-hook-form - reactjs

I'm getting an error while using react-hook-form 7.8.2, I used useWatch in one of my components.

I just needed to update to the latest version of react-hook-form.(at this moment 7.25.0)
I couldn't find the reason. I'm just leaving this here for those who came across this weird error.

In my case, that package wasn't installed

Related

Error: 'ForwardRef' is not exported by node_modules\#material-ui\utils\node_modules\react-is\index.js

I'm building React project with Material UI through storybook and facing this error (attached snap)
In my case, I was able to resolve this by removing the use of #rollup/plugin-node-resolve from my rollup.config.js, as it turns out I didn't need it.
That being said, if you do need the node-resolve plugin for other reasons, you may have to monitor the following issues:
https://github.com/mui-org/material-ui/issues/18791
https://github.com/react-component/util/issues/105
I saw this error in the midst of upgrading from MUI 4 to 5 as it relates to my Storybook site. I had followed the upgrade process they outlined, but tried to build before uninstalling MUI 4. This is what convinced that error to stop showing in my case.

Can't resolve 'react/jsx-dev-runtime' After updating React 16.13.1 -> 17.0.2

So I need to update react, react-dom in order to update nextjs version to 11. React docs says that the new jsx transform approach is backwards compatible, though I met such problem after updating to react 17.0.2. Any file using jsx fails to compile with Can't resolve 'react/jsx-dev-runtime', no matter if I leave the import React from 'react', or remove it as intended after updating to react ^17.
I tried updating #babel/preset-react, using latest #babel/plugin-transform-react-jsx, same problem. The only thing I've found in a similar question topic here is adding /** #jsxRuntime classic */ to the top of the file, which obviously doesnt solve the problem for the whole application (perhaps there might be a way to make such directive global but even then - I would like to be able to use the new and more optimised jsx compiling)
Haven't been able to google exactly my case and any existing suggestions for similar cases didn't help.
To summarise - I need to either make my app work without importing react itself (https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html) or at least to be able to use the old way of jsx compiling with this new react version.
Any thoughts?

Is there any replacement of #redux-dynostore?

I have upgraded my React-Redux version to 7.x.x. However, the #redux-dynostore is giving an error. Is it any replacement of #redux-dynostore?
The #redux-dynostore/react-redux package looks like it expects to work fine with React-Redux v7.

React Invalid Hook Call in Index.js in ReactDOM.render

This problem is killing me, but I keep getting this error when I compile and run (I am using .NET Core 3.0 with react app):
Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
You might have mismatching versions of React and the renderer (such as React DOM)
You might be breaking the Rules of Hooks
You might have more than one copy of React in the same app
The error points to my ../src/index.js file:
Here is the error displayed
Here is the code that is flagged with the invalid hook call error
I'm not sure what's going on, i spent the past 3 hours trying to fix it but I just can't get the homepage to show.
I understand the hooks error, but I don't understand why its getting called.
I have the matching versions of React and React DOM, 16.13.1
For my react components, I use classes.
I'm not sure how to check for different copies of react
I'm quite new to React so maybe i misunderstood or messed up somewhere, please help me here, thank you.
EDIT:
Check if redux is installed on the client. This error occurs when it isn't installed on client directory but server directory.
check package.json of client.
Maybe a crazy solution but in my case nothing was actually wrong with my code. I was going nuts trying to find the error. But what actually helped, was upgrading the version of Typescript installed in my project from 4.4 to 4.9. Don't see any evident connection but after the upgrade everything worked like a charm. :)

Error: Property left of ForInStatement is null?

yesterday I was able to create my react babylon app with react-scripts. After updating babylon to 4.1.0 I receive the following error:
./node_modules/babylonjs/babylon.js TypeError:
/git/proconf_sa/node_modules/babylonjs/babylon.js: Property left of ForInStatement expected node to be of a type [“VariableDeclaration”,“LVal”] but instead got null
Any idea what the problem could be? I updated from version 3.1.0-alpha3.7.
Thanks.
I was facing the same problem, however using Angular. I resolved by removing a package that uses svg.js#2.7.1 !!! From what you discover, this error is caused by the discontinued version of svg.js#2.7.1 !!! Look inside your application that there is a package using this and remove it!
If using apexcharts update it, because it depends on svg.js!
(NOTE: Sorry for possible errors in my writing, I'm Brazilian, I'm having to use Google translator to write this)

Resources