Closed songdedku closed 2 months ago
@songdedku please provide a valid reproduction where the errors is happening because I can't reproduce it - I tried Re.Pack on a fresh 0.75.3
project and everything works perfectly fine in release mode (on both platforms)
One thing that comes to mind, where this error could occur is that if you are using ScriptManager
in your code, and you make a bundle with metro
then this error could pop up because ScriptManager
expects __webpack_require__
to be defined as a global.
Describe the bug
ReferenceError: Property '__webpack_require__' doesn't exist, js engine: hermes when i build release mode but working on debug mode
System Info
Re.Pack Version
4.3.2
Reproduction
xxxx
Steps to reproduce
add shellScript = "set -e\n\nWITH_ENVIRONMENT=\"$REACT_NATIVE_PATH/scripts/xcode/with-environment.sh\"\nexport BUNDLE_COMMAND=webpack-bundle\nREACT_NATIVE_XCODE=\"$REACT_NATIVE_PATH/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n";
and build release error Property '__webpack_require__' doesn't exist, js engine: hermes but working on debug mode