callstack / callstack/react-native-fbads
Failed to resolve plugin for module "react-native-fbads" relative to [project dir]
- 主要语言
- Java
- 星标
- 451
- 派生
- 147
- PR 合并指标
- 30 天内没有已合并 PR
描述
# 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.
贡献指南
调研方向
先查看 main README 中的 Expo 安装说明和 app.json 中的插件配置,然后使用 eas build --profile development --platform ios 重现该问题。检查在 Expo 托管工作流中如何解析 react-native-fbsdk-next 和 react-native-fbads。完成的标准是 build 能够解析已配置的插件,且不再出现报告的错误。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, react-native
- 领域
- build-system, mobile
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100