Open bengrah-miller opened 4 years ago
Hi, I have the exact same problem and I'm following the same guide. Have you found a fix?
Hi there,
No I haven't managed to find a fix - I think it's likely something to do with the version of Ionic I'm on. I checked out a starter project on the latest Ionic and I could get it to work fine there. Sorry not much help.
bengrah
I am also using Ionic 3 for my application and facing this issue. Initial debugging results -
So I am assuming this is webpack compatibility issue.
Can someone tell what version of webpack-obfuscator is compatible with webpack@3.12.0?
I am also using Ionic 3 for my application and facing this issue. Initial debugging results -
- My webpack version is 3.12.0
- I was facing similar issue ( Cannot read property 'compilation' of undefined ) with webpack-obfuscator@3.2.0, then realised its for webpack@5 only
- Downgraded to webpack-obfuscator@2.6.0, no getting this error. ( Cannot read property 'emit' of undefined )
So I am assuming this is webpack compatibility issue.
Can someone tell what version of webpack-obfuscator is compatible with webpack@3.12.0?
Okay did some more testing. Conclusion - My above theory was correct. It is indeed a versioning issue which is not documented properly in this repository's commit logs.
Further work - I was short of time so did not test even higher versions of webpack-obfuscator, someone needs to test that.
@sanex3339 @mauricedoepke to please update the documents to reflect the compatibility of webpack-obfuscator versions with different versions of webpack. This is a great open-source initiative, and I would love that this has proper documentation as well. 😊😊
Hi - I'm not sure if this is the right place to post this but I could use some help.
I'm developing a project using Cordova/Ionic 3, and I'm trying to add the javascript-obfuscator plugin following this guide.
I've installed the javascript-obfuscator package via NPM, I've got a
config
folder with a copy ofwebpack.config.js
that's being recognised by my project and used. I've added my plugin:And in the
plugins
section:But when I run the
ionic cordova run android
command, I get the following output:Any ideas why this is happening, or what the error means?
Thanks, bengrah