Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'valueTracker' of undefined #12280

Closed
sangle7 opened this issue Feb 24, 2018 · 3 comments
Closed

TypeError: Cannot read property 'valueTracker' of undefined #12280

sangle7 opened this issue Feb 24, 2018 · 3 comments

Comments

@sangle7
Copy link

sangle7 commented Feb 24, 2018

Do you want to request a feature or report a bug?
A bug

What is the current behavior?
when i worked with the branch 15.6-dev, this error happened
2018-02-24 5 28 38

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your JSFiddle (https://jsfiddle.net/Luktwrdm/) or CodeSandbox (https://codesandbox.io/s/new) example below:

const App = props => (
  <form onChange={event => console.log(event.target.value)}>
    <label>
      <input type={'radio'} name={'myGroup'} value={1}/>
      Value 1
    </label>
    <label>
      <input type={'radio'} name={'myGroup'} value={2}/>
      Value 2
    </label>
    <label>
      <input type={'radio'} name={'myGroup'} value={3}/>
      Value 3
    </label>
  </form>
)

the error shows each time when a radio be clicked on

What is the expected behavior?
I had opened a pr about it #12230

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
on branch 15.6-dev
notice that this error has been fixed in v16

@aweary
Copy link
Contributor

aweary commented Feb 25, 2018

@sangle7 why are you running the 15.6-dev branch? I don't think that branch is in a stable state. It sounds like you're running mismatched versions of react and react-dom.

@sangle7
Copy link
Author

sangle7 commented Feb 26, 2018

@aweary hi, for some reasons, our project is not ready for v16, and the stable 15.6 version has a bug like this #10739. I noticed that the 15.6-dev branch has fixed this bug, so i ran project with it. I build from this branch and use npm link to link my project with react and react-dom, and the problem is still there.

@aweary
Copy link
Contributor

aweary commented Mar 6, 2018

@sangle7 I would double check that npm link was sufficient, sometimes symlinks don't work as expected. You can try setting breakpoints and seeing if it's running the correct code. On that branch _wrapperState is defined here: https://github.com/facebook/react/blob/15.6-dev/src/renderers/dom/client/wrappers/ReactDOMInput.js#L149-L157.

@aweary aweary closed this as completed Mar 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants