nytimes / react-tracking

🎯 Declarative tracking for React apps.
https://open.nytimes.com/introducing-react-tracking-declarative-tracking-for-react-apps-2c76706bb79a
Other
1.88k stars 123 forks source link

[React Native][Android] transform inlineRequires cause maximum call stack #116

Closed Jekiwijaya closed 5 years ago

Jekiwijaya commented 5 years ago

Hello, I using react-tracking in my react native projects.

But when I enable the transform: { inilineRequires: true } the project breaks. I found out if I comment the react-tracking, it works as expected. Note that it only affected in android only.

Example Repo

https://github.com/Jekiwijaya/react-tracking-bug-inline-require-react-native

The bug is make maximum call stack / recursive in some line.

I think the problem comes from core-js, which override the defineProperty, but I'm not really sure.

Jekiwijaya commented 5 years ago

Find the solution. to fix, upgrade to 0.59 react-native version, since it's upgrade the android JSC.