Error: While trying to resolve module `react-native-fbads` from file
Bug Report
Before opening
- [x] Did you try the latest release?
- [x] Did you look for existing issues?
Ad Modules
Platforms
Versions
- Android: 27
- iOS:
- react-native-fbads:
- react-native:
Ads Environment 27 or 33
i Run fbd React native and found some problem as below, please help me
error: Error: While trying to resolve module react-native-fbads from file E:\Software React\test20230105\BannerAds.js, the package E:\Software React\test20230105\node_modules\react-native-fbads\package.json was successfully found. However, this package itself specifies a main module field that could not be resolved (E:\Software React\test20230105\node_modules\react-native-fbads\dist\lib\index.js. Indeed, none of these files exist:
React native CLI. Error in the picture:

same issue here
Yes same issue please any one fix this
I have resolved this issue by doing some changes. First one as I forget to install react-native-fbsdk-next package which is required for react-native-fbads. make sure configure it properly (follow documentation properly). react-native-fbsdk-next configuration link
The second change that may make resolved the issue by down-grading to [email protected]
May be it will help let me try it
Not working bro please any one help with this issue configure file issue in app.json file
I have resolved this issue by doing some changes. First one as I forget to install react-native-fbsdk-next package which is required for react-native-fbads. make sure configure it properly (follow documentation properly). react-native-fbsdk-next configuration link
The second change that may make resolved the issue by down-grading to [email protected]
Bro, this is not working. You mean: you will not folow to install:react-native-fbsdk-next? Could you show the step to set up?
here is configuration react-native-fbsdk-next react-native-fbsdk-next
try also to down-grade react-native-fbads to 7.0.5
Not working bro,it shows React native fbads configurations file error in app.json when I try again to install the package react native fbads it give error that
Skkiping Configurations file check
here is configuration react-native-fbsdk-next react-native-fbsdk-next
try also to down-grade react-native-fbads to 7.0.5
Bro, i clarify your comment:
- Do not install lib react-native-fbsdk-next: https://github.com/thebergamo/react-native-fbsdk-next
- Folow instruction: https://developers.facebook.com/docs/android/getting-started/
- Install lib react-native-fbads ver 7.0.5: https://github.com/callstack/react-native-fbads Is this right?
downgrade 7.0.5 is not working with new apps and sdk, not supported
Error: While trying to resolve module
react-native-fbadsfrom fileE:\Software React\test20230105\BannerAds.js, the packageE:\Software React\test20230105\node_modules\react-native-fbads\package.json
Bro in new apps Fb not supporting to lower the version
same issue, any solution ?
@zuberqureshi @Roundtree-Larry Please install react-native-fbsdk-next instead of react-native-fbsdk as Facebook dropped support from it
This should be fixed in 7.1.1 as it was the same issue as #354
Is the ads issue fixed?