Open gaearon opened 6 years ago
Once #1850 lands, this crash degenerates to
'_K' is not defined. (96:25)
Where _K
is defined in an optimized function, and referenced by
var $f_0 = function () {
_I = <div data-foo={_K} />;
};
This may be very react specific.
I am getting this on master now:
Failed to render React component root "App" due to side-effects from throwing exception at location: 18:16 - 18:18
- App (fatal: Failed to render React component root "App" due to side-effects from throwing exception at location: 18:16 - 18:18)
Yeah, we disabled throwing in React to work around the bugs. I think you should be able to temporarily re-enable it by commenting out this line:
https://github.com/facebook/prepack/blob/aa700a2667f5c28754ae2dad2a64a3ad4191276a/src/realm.js#L648
Repro:
Invariant:
https://github.com/facebook/prepack/blob/41817e59150cc5ae99a6cdeaced2ee91df56084a/src/serializer/Emitter.js#L322