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

Cannot read property 'value' of undefined #143

Open
stevenanthonyrevo opened this issue Jul 17, 2020 · 1 comment
Open

Cannot read property 'value' of undefined #143

stevenanthonyrevo opened this issue Jul 17, 2020 · 1 comment

Comments

@stevenanthonyrevo
Copy link

After installing msignal and react and running haxe build.hxml command within the sample Todo App directory.

I've received an error on the click function of the todo with the class.button-add.

TodoApp.hx:65 Uncaught TypeError: Cannot read property 'value' of undefined
    at view_TodoApp.addItem (TodoApp.hx:65)
    at HTMLUnknownElement.callCallback (react-dom.development.js:144)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:182)
    at Object.invokeGuardedCallback (react-dom.development.js:231)
    at Object.invokeGuardedCallbackAndCatchFirstError (react-dom.development.js:245)
    at executeDispatch (react-dom.development.js:608)
    at executeDispatchesInOrder (react-dom.development.js:630)
    at executeDispatchesAndRelease (react-dom.development.js:728)
    at executeDispatchesAndReleaseTopLevel (react-dom.development.js:739)
    at forEachAccumulated (react-dom.development.js:709)
addItem @ TodoApp.hx:64
callCallback @ react-dom.development.js:144
invokeGuardedCallbackDev @ react-dom.development.js:182
invokeGuardedCallback @ react-dom.development.js:231
invokeGuardedCallbackAndCatchFirstError @ react-dom.development.js:245
executeDispatch @ react-dom.development.js:608
executeDispatchesInOrder @ react-dom.development.js:630
executeDispatchesAndRelease @ react-dom.development.js:728
executeDispatchesAndReleaseTopLevel @ react-dom.development.js:739
forEachAccumulated @ react-dom.development.js:709
runEventsInBatch @ react-dom.development.js:870
runExtractedEventsInBatch @ react-dom.development.js:879
handleTopLevel @ react-dom.development.js:4548
batchedUpdates @ react-dom.development.js:12852
batchedUpdates @ react-dom.development.js:2119
dispatchEvent @ react-dom.development.js:4629
interactiveUpdates @ react-dom.development.js:12907
interactiveUpdates @ react-dom.development.js:2138
dispatchInteractiveEvent @ react-dom.development.js:4606

Is this an issue with an outdated react bundle or the compiled JS?

react-dom.development.js:284 Uncaught TypeError: Cannot read property 'value' of undefined
    at view_TodoApp.addItem (TodoApp.hx:65)
    at HTMLUnknownElement.callCallback (react-dom.development.js:144)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:182)
    at Object.invokeGuardedCallback (react-dom.development.js:231)
    at Object.invokeGuardedCallbackAndCatchFirstError (react-dom.development.js:245)
    at executeDispatch (react-dom.development.js:608)
    at executeDispatchesInOrder (react-dom.development.js:630)
    at executeDispatchesAndRelease (react-dom.development.js:728)
    at executeDispatchesAndReleaseTopLevel (react-dom.development.js:739)
    at forEachAccumulated (react-dom.development.js:709)
@elsassph
Copy link
Contributor

The sample may have rotten... I'll try to review that asap.

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