javascript-obfuscator: Error on node 13.5.0

Error on node 13.5.0 https://travis-ci.com/javascript-obfuscator/javascript-obfuscator/jobs/269066094

Error: The number of constructor arguments in the derived class ObfuscationEventEmitter must be >= than the number of constructor arguments of its base class.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 24 (12 by maintainers)

Commits related to this issue

Most upvoted comments

I get the same issue using react-native-obfuscating-transformer

Yes, my bad. I incorrectly overrode the nested dependency javascript-obfuscator dependency for react-native-obfuscating-transformer. Is there any chance that javascript-obfuscator can be updated for react-native-obfuscating-transformer any time soon? That would be a massive help to everyone using it.

To everyone: try to remove package-lock.json and completely reinstall all your modules. Will it help? This error does not reproduced on the Travis CI, so likely this is a problem related to outdated versions in package-lock.json

Got the same issue on Node.js 12.16.0. The fix works.

hello,when i use laset version and more version ,the error is "Cannot read property ‘sourceAndMap’ of undefined " so i use 0.18.3 ,that error is disappear,but error ‘The number of constructor arguments in the derived class ObfuscationEventEmitter must be >= than the number of constructor arguments of its base class.’,please help me