Expo sdk upgrade to expo 46 Unable to resolve module metro/src/lib/bundle-modules/asyncRequire

Hi, I recently upgraded my expo project from version 42 to version 46, but the problem I am getting is “Unable to resolve module metro/src/lib/bundle-modules/asyncRequire”

  1. SDK Version: 46.0.0
  2. Platforms: Android and iOS
  3. expo 46.0.0

Detail Error message.
Unable to resolve module metro/src/lib/bundle-modules/asyncRequire from ~/workspace/ethekwini-app/.: metro/src/lib/bundle-modules/asyncRequire could not be found within the project or in these directories:
node_modules
Any help will be appreciated. thanks

If you can provide more information about the error (e.g, if you see a filename, that would be good info), it may be easier to troubleshoot. However, at first glance, this seems like an issue your your metro.config.js file. Check this doc out for more information on how to customize metro.