Can't find app.plugin.js file when using @react-native-mapbox-gl/maps with custom dev client

I have just installed the Expo Tools VS Code extension and I now get the error message
Cannot find module 'd:\...\node_modules\@react-native-mapbox-gl\maps\app.plugin.js' expo-config(MODULE_NOT_FOUND). This is pretty weird because I exactly followed these steps and the file app.plugin.js, which is allegedly missing does exist in my node_modules folder.
This is the content of the app.plugin.js file:

module.exports = require('./plugin/build/withMapbox');

This is my app.json configuration in whic the error gets thrown.

{
  "expo": {
    ...
    "version": "1.0.0",
    "orientation": "portrait",
    "icon": "./assets/icon.png",
    "plugins": ["@react-native-mapbox-gl/maps"],
    "splash": {
      "image": "./assets/splash.png",
      "resizeMode": "contain",
      "backgroundColor": "#ffffff"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": ["**/*"],
    "ios": {
      "supportsTablet": true
    },
    "android": {
      "adaptiveIcon": {
        "foregroundImage": "./assets/adaptive-icon.png",
        "backgroundColor": "#FFFFFF"
      },
      "package": "com.account.project"
    },
    "web": {
      "favicon": "./assets/favicon.png"
    }
  }
}

Can this be just a bug of the Expo Tools VS Code Extension?

I’ve seen in some github issues that the current version (0.73) of expo vscode is bugged. On 0.72 the issue went away. However, on neither version did expo preview config or expo preview modifier commands work.

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