-
Notifications
You must be signed in to change notification settings - Fork 116
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
Support React v16 #106
Comments
Hi @perdox, I'll setup a copy and check for myself. I've been able to run it against Winterfell myself. Are you using the prebuilt version or bundling it yourself using the npm package? |
This issue exists when you add winterfell into cretate-react-app
|
Hi,
|
@andrewhathaway After doing a little investigating on the error, it seems like the solution is to require react and react-dom as a src for solution: enzymejs/enzyme#1199 Edit for clarification: This issue stems from a package having a react and react-dom version < 16 and the project you are importing into has versions >= 16. Dependency mismatch |
👍 on this. Is there a PR? |
@Pharserror Not currently, could you facilitate? :) |
I had this same issue just now. The npm package needs to be updated to match this GitHub repo. (The version number in Until that happens, a workaround is to install Winterfell from GitHub instead of npm:
|
Currently due to the fact that React 16 does not work when previous React versions are included winterfell does not work in React 16. The following error is thrown when trying to fill the form:
ReactBaseClasses.js:64 Uncaught TypeError: this.updater.enqueueCallback is not a function
at RadioOptionsInput../node_modules/winterfell/node_modules/react/lib/ReactBaseClasses.js.ReactComponent.setState (ReactBaseClasses.js:64)
at RadioOptionsInput.handleChange (radioOptionsInput.js:29)
at HTMLUnknownElement.callCallback (react-dom.development.js:542)
at Object.invokeGuardedCallbackDev (react-dom.development.js:581)
at Object.invokeGuardedCallback (react-dom.development.js:438)
at Object.invokeGuardedCallbackAndCatchFirstError (react-dom.development.js:452)
at executeDispatch (react-dom.development.js:836)
at executeDispatchesInOrder (react-dom.development.js:858)
at executeDispatchesAndRelease (react-dom.development.js:956)
at executeDispatchesAndReleaseTopLevel (react-dom.development.js:967)
at Array.forEach ()
at forEachAccumulated (react-dom.development.js:935)
at processEventQueue (react-dom.development.js:1112)
at runEventQueueInBatch (react-dom.development.js:3607)
at handleTopLevel (react-dom.development.js:3616)
at handleTopLevelImpl (react-dom.development.js:3347)
at batchedUpdates (react-dom.development.js:11082)
at batchedUpdates (react-dom.development.js:2330)
at dispatchEvent (react-dom.development.js:3421)
Is there an existing workaround? Is support for React 16 planned?
The text was updated successfully, but these errors were encountered: