react-native-fbads icon indicating copy to clipboard operation
react-native-fbads copied to clipboard

Error: While trying to resolve module `react-native-fbads` from file

Open chungtv1doi opened this issue 3 years ago • 16 comments

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:

chungtv1doi avatar Jan 05 '23 08:01 chungtv1doi

React native CLI. Error in the picture:

21

chungtv1doi avatar Jan 06 '23 01:01 chungtv1doi

same issue here

Yasir12598 avatar Jan 25 '23 10:01 Yasir12598

Yes same issue please any one fix this

devxrithm avatar Jan 26 '23 11:01 devxrithm

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]

Yasir12598 avatar Jan 27 '23 16:01 Yasir12598

May be it will help let me try it

devxrithm avatar Jan 28 '23 04:01 devxrithm

Not working bro please any one help with this issue configure file issue in app.json file

devxrithm avatar Jan 28 '23 16:01 devxrithm

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?

chungtvdev avatar Jan 28 '23 16:01 chungtvdev

here is configuration react-native-fbsdk-next react-native-fbsdk-next

try also to down-grade react-native-fbads to 7.0.5

Yasir12598 avatar Jan 29 '23 14:01 Yasir12598

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

devxrithm avatar Jan 29 '23 15:01 devxrithm

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?

chungtv1doi avatar Jan 30 '23 01:01 chungtv1doi

downgrade 7.0.5 is not working with new apps and sdk, not supported

zuberqureshi avatar Jul 04 '23 09:07 zuberqureshi

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

Bro in new apps Fb not supporting to lower the version

zuberqureshi avatar Jul 11 '23 15:07 zuberqureshi

same issue, any solution ?

Roundtree-Larry avatar Jul 26 '23 15:07 Roundtree-Larry

@zuberqureshi @Roundtree-Larry Please install react-native-fbsdk-next instead of react-native-fbsdk as Facebook dropped support from it fbsdk

Yasir12598 avatar Aug 17 '23 04:08 Yasir12598

This should be fixed in 7.1.1 as it was the same issue as #354

matt-oakes avatar Aug 17 '23 16:08 matt-oakes

Is the ads issue fixed?

devxrithm avatar Aug 17 '23 22:08 devxrithm