Cannot find module 'metro-config/src/defaults/blacklist

Please provide the following:

  1. SDK Version: 41.0.0
  2. Platforms(Android/iOS/web/all): Android/IOS

I have just updated my project with expo upgrade and following the different steps.
On the launch of my app I have this error :
Cannot find module 'metro-config/src/defaults/blacklist'

My project is a monorepo and I use expo-yarn-workspace too
There is my metro.config.js :

const { createMetroConfiguration } = require('expo-yarn-workspaces');

module.exports = createMetroConfiguration(__dirname);

And diff version in my package.json :

 "@expo/metro-config": "^0.1.76",
   "expo-yarn-workspaces": "^1.5.1",
    "react-native": "0.64.2",

If you have any idea to resolve that?

Ok I found the solution …
I fixed it by find where 'metro-config/src/defaults/blacklist' is call and replace it
by 'metro-config/src/defaults/exclusionList' because it’s been renamed.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.