Error: Cannot find module 'expo/config-plugins'

I’m trying to add this plugin to my project:

"plugins": [
      [
        "expo-build-properties",
        {
          "android": {
            "enableProguardInReleaseBuilds": true
          }
        }
      ]
    ]

I ran the command

npx expo install expo-build-properties

Now when I try to build the app using

eas build -p android --profile production

I am getting this error

Error: Cannot find module 'expo/config-plugins'
    Require stack:
    - C:\Users\-\node_modules\expo-build-properties\b  
    uild\android.js
    - C:\Users\-\node_modules\expo-build-properties\b  
    uild\withBuildProperties.js
    - C:\Users\-\node_modules\expo-build-properties\a  
    pp.plugin.js
    - C:\Users\-\AppData\Roaming\npm\node_modules\eas-cli\node_modules\@expo\config-plugins\build\  
    utils\plugin-resolver.js

What can I do to resolve this?

Expo SKD: 43
expo-build-properties: 0.4.1

expo-build-properties requires SDK 45 or higher to use, so that may be causing the error.

2 Likes

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