Cannot find module expo/config-plugins
After installing
npx expo install config-plugin-react-native-intercom expo-build-properties
› Installing 1 SDK 46.0.0 compatible native module and 1 other package using Yarn
> yarn add config-plugin-react-native-intercom expo-build-properties@~0.3.0
yarn add v1.22.15
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
warning Workspaces can only be enabled in private projects.
[4/4] 🔨 Building fresh packages...
success Saved lockfile.
warning Workspaces can only be enabled in private projects.
success Saved 2 new dependencies.
info Direct dependencies
├─ [email protected]
└─ [email protected]
info All dependencies
├─ [email protected]
└─ [email protected]
✨ Done in 7.38s.
CommandError: Cannot find module 'expo/config-plugins'
Require stack:
- .../node_modules/config-plugin-react-native-intercom/node_modules/expo-build-properties/build/android.js
- .../node_modules/config-plugin-react-native-intercom/node_modules/expo-build-properties/build/withBuildProperties.js
- .../node_modules/config-plugin-react-native-intercom/build/withIntercom.js
- .../node_modules/config-plugin-react-native-intercom/app.plugin.js
- .../node_modules/@expo/config/node_modules/@expo/config-plugins/build/utils/plugin-resolver.js
- .../node_modules/@expo/config/node_modules/@expo/config-plugins/build/plugins/withStaticPlugin.js
- .../node_modules/@expo/config/node_modules/@expo/config-plugins/build/plugins/withPlugins.js
- .../node_modules/@expo/config/node_modules/@expo/config-plugins/build/index.js
- .../node_modules/@expo/config/build/plugins/withConfigPlugins.js
- .../node_modules/@expo/config/build/Config.js
- .../node_modules/@expo/config/build/index.js
- .../node_modules/@expo/cli/build/src/utils/cocoapods.js
- .../node_modules/@expo/cli/build/src/run/ios/runIosAsync.js
- .../node_modules/@expo/cli/build/src/run/ios/index.js
- .../node_modules/@expo/cli/build/bin/cli
Expo SDK: 46
I ran into the same problem installing on Expo SDK 45. I tried many different combinations of versions for the peer dependencies, and in the end succeeded with the following combination:
- config-plugin-react-native-intercom @1.6.10
- @intercom/intercom-react-native @ 3.0.3
- expo-build-properties @ 0.2.0
Whilst I managed to eventually get things working and created an Expo Custom Development Client, I would really like to get the latest version of config-plugin-react-native-intercom working so that I can move to the version 4.x.x of @intercom/intercom-react-native which seems to have a lot more options to configure the look and feel.
We updated the Expo to 47, and this wasn't an issue after that.
This is an issue for us when trying to upgrade from v 3.0.6 to v4.0.1 on SDK46.
Looks like this is the reason why it works in SDK47
🔌 Config plugins Starting with SDK 47, we re-export @expo/config-plugins and @expo/config from the expo package and import the libraries with expo/config-plugins and expo/config (notice there is no more leading @ )
If you are a library author, we recommend referring to the updated “Developing a Plugin” guide for more information on how to update your library to this style of imports. This will save you time in the future because you won’t need to update the @expo/config-plugins version for each release anymore, and your library will be immediately compatible with new expo releases (provided that there have been no breaking changes to the config-plugins API, which is relatively stable at this point).