javascript-obfuscator / react-native-obfuscating-transformer

Obfuscation for React Native bundles
MIT License
195 stars 99 forks source link

Old javascript-obfuscator dependence causes error #29

Open antonandreyev opened 4 years ago

antonandreyev commented 4 years ago

Hi,

With current 0.13.0 version of javascript-obfuscator I'm getting error

The number of constructor arguments in the derived class t must be >= than the number of constructor arguments of its base class at getTargets (...\node_modules\react-native-obfuscating-transformer\node_modules\inversify\lib\planning\reflection_utils.js:32:15)

With updated version to 0.27.2 ther is no error.

Now I'm going to override the nested dependency in package.json, but please consider updating dependecy.

My node version is 12.16.0

jesucarr commented 4 years ago

+1 I just run into the same problem. I don't think node version matters, I'm using 13.8.0

sanex3339 commented 4 years ago

@ds300 ping

crzycoder commented 3 years ago

upgrade the JavaScript obfuscator version to 2.11.0 in your node module react-native-obfuscating-transformer 1 - just open the react-native-obfuscating-transformer from node module in terminal and delete node module and change the JavaScript obfuscator version and run npm i again