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?