Uncaught TypeError: cannot set property valid for # <ReduxForm> that only getter has

I am trying to insert a reduction form in my project but I am getting this error. Does anyone know what the problem is.

What I have done so far is that when I add the following code snippet, it starts returning this error to me - "Uncaught TypeError: cannot set the property valid for #, which has only getter".

LoginForm = reduxForm({
  // a unique name for the form
  form: 'login',
})(LoginForm);
+4
source share
3 answers

I have the same problem. Just removed the react-hot-loader from the webpack configuration

0
source

, , - . , - :

LoginForm = reduxForm({
  // a unique name for the form
  form: 'login',
})(LoginForm);

package.json . , - . , , Facebook create-react-app, .

0

react-hot-loader v3, -.

yarn add --dev react-hot-loader@3.0.0-beta.7 

npm

npm install --save-dev react-hot-loader@3.0.0-beta.7

- react-hot-loader/webpack

GitHub

0

Source: https://habr.com/ru/post/1685211/


All Articles