javascript-obfuscator / react-native-obfuscating-transformer

Obfuscation for React Native bundles
MIT License
196 stars 100 forks source link

Please update the version of javascript-obfuscator to 1.3.0 or later #40

Open htduy262 opened 4 years ago

htduy262 commented 4 years ago

I got the issue when bundling the code: "The number of constructor arguments in the derived class t must be >= than the number of constructor arguments of its base class."

I got node_module/react-native-obfuscating-transformer and change the version of javascript-obfuscator to 1.3.0. Then it works. Please take some time to upgrade our good library. Thank you very much!

mppperez commented 3 years ago

javascript-obfuscator was updated to 2.6.0 about 6 month ago (see https://github.com/javascript-obfuscator/react-native-obfuscating-transformer/pull/37). Since the maintainer of this library is not maintainig this library anymore you need to checkout yourself and build ("npm run build") and overwrite the resources in your node_modules manually or alternatively deploy the library to an internal repo yourself.

to make it work with current RN (0.64) I've created a PR which made it work. If you still need a working version I would be glad if you could test the new one with your code: https://github.com/javascript-obfuscator/react-native-obfuscating-transformer/pull/45

alvinisasi commented 2 years ago

To fix this issue, please the maintainer to review and merge my PR Thank you!