-
Notifications
You must be signed in to change notification settings - Fork 36
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
Error with react native #161
Comments
Hmm... I believe Stefan Rimaila (@stuf) ran into this same issue some time ago. Would you like to make a quick PR with the following diff -export const protoless0 = I.freeze(protoless(0))
+export const protoless0 = I.freeze(protoless(I.object0)) which should also work around the issue with RN? I'm hesitant to make more significant workarounds for RN, but if the immediate crash is due to just that one line, then why not just change it. The root problem is that, for some reason, React Native implements a polyfill (or a replacement?) for the standard Partial Lenses basically uses I mention the above because, even though the change to |
Done |
Thanks for reporting this and the PR! I've now released v13.7.4 that contains the workaround. |
I tried to use this package on a react native package but got this error:
In this environment the sources for assign MUST be an object. This error is a performance optimization and not spec compliant
I did some digging and found what it is complaining about:
src/ext/infestines.js:12
export const protoless0 = I.freeze(protoless(0))
This calls the protoless function which assigns the value 0 to an empty object, which is what throws the error.
I am wondering why as I couldn't find any changes to the object after the 0 is assigned and if I replace
protoless(0)
withcreate(null)
and run the tests, everything seemed to work.Maybe there is a reason for this that I am missing? Thanks in advance for any help
The text was updated successfully, but these errors were encountered: