callstack / callstack/react-native-fbads
Failed to resolve plugin for module "react-native-fbads" relative to [project dir]
- Dominant language
- Java
- Stars
- 451
- Forks
- 147
- PR merge metrics
- No merged PRs in 30d
Description
# Bug Report
**Before opening**
- [ X] Did you try the latest release?
- [ X] Did you look for existing issues?
**Ad Modules**
Have this activated in my facebook app
**Platforms**
Developing for both android and ios
**Versions**
- react-native-fbads: 7.1.0
- react-native: 0.68.2
I am using an eas build for a project that is part of a managed expo workflow. I followed the instructions under "expo installation" in the main readme. When I attempt to run `eas build --profile development --platform ios` I get the following cryptic error:
Failed to resolve plugin for module "react-native-fbads" relative to "D:\Projects\pollenbbmap"
My app.json looks like this
```
{
"expo": {
"owner": "gainesvilleboyz",
"name": "pollenbbmap",
"slug": "pollenbbmap",
"version": "0.0.1",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": ["**/*"],
"ios": {
"supportsTablet": true,
"bundleIdentifier": "com.arham23.pollenbbmap"
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#FFFFFF"
}
},
"web": {
"favicon": "./assets/favicon.png"
},
"plugins": [
[
"react-native-fbsdk-next",
{
"appID": "XXXX",
"clientToken": "XXX",
"displayName": "Pollen Map App",
"advertiserIDCollectionEnabled": false,
"autoLogAppEventsEnabled": false,
"isAutoInitEnabled": true,
"iosUserTrackingPermission": "This identifier will be used to deliver personalized ads to you."
}
],
"react-native-fbads"
]
}
}
```
Has anyone else experienced this error? Google shows zero results with this issue.
Contributor guide
Research direction
Start with the Expo installation instructions in the main README and the plugin configuration in app.json, then reproduce the issue with eas build --profile development --platform ios. Check how react-native-fbsdk-next and react-native-fbads are resolved in the managed Expo workflow. Done means the build resolves the configured plugins without the reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100