-
Notifications
You must be signed in to change notification settings - Fork 8
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
Break with error on build production #12
Comments
I just tried to build an example from https://codesandbox.io/s/react-reparenting-reparentable-rvfi4 What did I do:
|
With the arrival of React 17, it will no longer be possible to use react-reparenting in production mode. The package (in its version 0.4.0) will continue to work with react 16 both in production and in development mode. |
So to be clear - in React 17 this lib is not an option anymore? What is the reason for this? |
While no new features have been added in React 17, I will have to understand if and how the internals have been changed since 16. This is to try to avoid React internal misbehavior that would be impossible to debug. I will work on an upcoming release to solve this problem. |
any updates on this? |
The release has already been designed. Now I just have to write and publish it but I don't think I will have much free time for a few months. As soon as it is ready it will be available on github. |
I'm having the same issue even when downgrading to React 16. Does anybody have a working example ? Edit: React 16 works only with |
I can confirm the solution works. Saved my day. Thank you! |
The new version of React-Reparenting should solve the problem, the API removed from version 0.4.0 are back available. |
When I try to build a production with any mention of tag
<Reparentable>
, the app throwing error with the message "invariant failed".The text was updated successfully, but these errors were encountered: