webpack_require__' doesn't exist, js engine: hermes

Started 6 months ago by Dhanasekar in React Native

Check and update your webpack config to ensure compatibility with the Hermes JavaScript engine. Ensure that all modules are correctly bundled.

Body

 ReferenceError: Can't find variable: __webpack_require__
 LOG  Running "HostApp" with {"rootTag":11}
 ERROR  Invariant Violation: "HostApp" has not been registered. This can happen if:
* Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
* A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called.

2 Replies

  • Replied 5 months ago

    Report

    1. Down Node Version :  Require 16.0.0 (or) 16.2.0
    2. Check Environment Variable.
    3. Check Related Packages & Files (webpack.config.js)

  • Replied 1 week ago

    Report

    1. Down Node Version :  Require 16.0.0 (or) 16.2.0
    2. Check Environment Variable.
    3. Check Related Packages & Files (webpack.config.js)

    It's working