obfuscator-io-metro-plugin icon indicating copy to clipboard operation
obfuscator-io-metro-plugin copied to clipboard

ReferenceError: Property 'ErrorUtils' doesnt exist

Open branewyn opened this issue 9 months ago • 0 comments

Hi. i am trying to use this plugin to obfuscate my js files using expo and react native. if i do not use this plugin the application compiles correctly. however added the suggested metro.config.js file causes the error mentioned in the title

i am using the latest expo sdk 51 for this. this was not an issue in expo sdk 49. i cannot revert back to 49 because it is no longer supported by iOS 17.

I have tried this package with previous success and metro-minify-obfuscator with no success

essential packages i am using are listed below

"@expo/metro-runtime": "~3.2.1",
"@expo/webpack-config": "~19.0.1",
"expo": "~51.0.7",
"expo-application": "~5.9.1",
"expo-build-properties": "~0.12.1",
"expo-constants": "~16.0.1",
"obfuscator-io-metro-plugin": "^2.1.3",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "0.74.1",
"react-native-reanimated": "~3.10.1",
"react-native-safe-area-context": "4.10.1",
"react-native-screens": "3.31.1",
"react-native-web": "~0.19.10",
"typescript": "~5.3.3",
"webpack-obfuscator": "^3.5.1"

branewyn avatar May 17 '24 13:05 branewyn