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

Getting this warning with an Error "Require cycle: node_modules\react-native-fbads\dist\lib\index.js -> node_modules\react-native-fbads\dist\lib\native-ads\withNativeAd.js -> node_modules\react-native-fbads\dist\lib\index.js Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle."

Open Chandravardhan8998 opened this issue 5 years ago • 7 comments

WARN : Require cycle: node_modules\react-native-fbads\dist\lib\index.js -> node_modules\react-native-fbads\dist\lib\native-ads\withNativeAd.js -> node_modules\react-native-fbads\dist\lib\index.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.

and ERROR : error {"_dispatchInstances": {"_debugHookTypes": null, "_debugID": 2439, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": {"_debugHookTypes": null, "_debugID": 2437, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": [FiberNode], "_debugSource": [Object], "actualDuration": 3, "actualStartTime": 2839, "alternate": null, "child": [Circular], "childExpirationTime": 0, "dependencies": null, "effectTag": 1, "elementType": [Function BannerView], "expirationTime": 0, "firstEffect": null, "index": 0, "key": null, "lastEffect": null, "memoizedProps": [Object], "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": [Object], "ref": null, "return": [FiberNode], "selfBaseDuration": 0, "sibling": null, "stateNode": null, "tag": 0, "treeBaseDuration": 1, "type": [Function BannerView], "updateQueue": null}, "_debugSource": {"columnNumber": 13, "fileName": "D:\BlackWallpaperCVS\node_modules\react-native-fbads\dist\lib\BannerViewManager.js", "lineNumber": 24}, "actualDuration": 3, "actualStartTime": 2839, "alternate": null, "child": null, "childExpirationTime": 0, "dependencies": null, "effectTag": 0, "elementType": "CTKBannerView", "expirationTime": 0, "firstEffect": null, "index": 0, "key": null, "lastEffect": null, "memoizedProps": {"onAdError": [Function onError], "onAdLoad": [Function onLoad], "onAdPress": [Function onPress], "placementId": "148526777042150_14910*******07", "size": 50, "style": [Array]}, "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": {"onAdError": [Function onError], "onAdLoad": [Function onLoad], "onAdPress": [Function onPress], "placementId": "148526777042150_17407", "size": 50, "style": [Array]}, "ref": null, "return": {"_debugHookTypes": null, "_debugID": 2437, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": [FiberNode], "_debugSource": [Object], "actualDuration": 3, "actualStartTime": 2839, "alternate": null, "child": [Circular], "childExpirationTime": 0, "dependencies": null, "effectTag": 1, "elementType": [Function BannerView], "expirationTime": 0, "firstEffect": null, "index": 0, "key": null, "lastEffect": null, "memoizedProps": [Object], "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": [Object], "ref": null, "return": [FiberNode], "selfBaseDuration": 0, "sibling": null, "stateNode": null, "tag": 0, "treeBaseDuration": 1, "type": [Function BannerView], "updateQueue": null}, "selfBaseDuration": 1, "sibling": null, "stateNode": {"_children": [Array], "_internalFiberInstanceHandleDEV": [Circular], "_nativeTag": 385, "viewConfig": [Object]}, "tag": 5, "treeBaseDuration": 1, "type": "CTKBannerView", "updateQueue": null}, "_dispatchListeners": [Function onError], "_targetInst": {"_debugHookTypes": null, "_debugID": 2439, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": {"_debugHookTypes": null, "_debugID": 2437, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": [FiberNode], "_debugSource": [Object], "actualDuration": 3, "actualStartTime": 2839, "alternate": null, "child": [Circular], "childExpirationTime": 0, "dependencies": null, "effectTag": 1, "elementType": [Function BannerView], "expirationTime": 0, "firstEffect": null, "index": 0, "key": null, "lastEffect": null, "memoizedProps": [Object], "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": [Object], "ref": null, "return": [FiberNode], "selfBaseDuration": 0, "sibling": null, "stateNode": null, "tag": 0, "treeBaseDuration": 1, "type": [Function BannerView], "updateQueue": null}, "_debugSource": {"columnNumber": 13, "fileName": "D:\BlackWallpaperCVS\node_modules\react-native-fbads\dist\lib\BannerViewManager.js", "lineNumber": 24}, "actualDuration": 3, "actualStartTime": 2839, "alternate": null, "child": null, "childExpirationTime": 0, "dependencies": null, "effectTag": 0, "elementType": "CTKBannerView", "expirationTime": 0, "firstEffect": null, "index": 0, "key": null, "lastEffect": null, "memoizedProps": {"onAdError": [Function onError], "onAdLoad": [Function onLoad], "onAdPress": [Function onPress], "placementId": "14852677717407", "size": 50, "style": [Array]}, "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": {"onAdError": [Function onError], "onAdLoad": [Function onLoad], "onAdPress": [Function onPress], "placementId": "14852677704********107540317407", "size": 50, "style": [Array]}, "ref": null, "return": {"_debugHookTypes": null, "_debugID": 2437, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": [FiberNode], "_debugSource": [Object], "actualDuration": 3, "actualStartTime": 2839, "alternate": null, "child": [Circular], "childExpirationTime": 0, "dependencies": null, "effectTag": 1, "elementType": [Function BannerView], "expirationTime": 0, "firstEffect": null, "index": 0, "key": null, "lastEffect": null, "memoizedProps": [Object], "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": [Object], "ref": null, "return": [FiberNode], "selfBaseDuration": 0, "sibling": null, "stateNode": null, "tag": 0, "treeBaseDuration": 1, "type": [Function BannerView], "updateQueue": null}, "selfBaseDuration": 1, "sibling": null, "stateNode": {"_children": [Array], "_internalFiberInstanceHandleDEV": [Circular], "_nativeTag": 385, "viewConfig": [Object]}, "tag": 5, "treeBaseDuration": 1, "type": "CTKBannerView", "updateQueue": null}, "bubbles": undefined, "cancelable": undefined, "currentTarget": {"_children": [], "_internalFiberInstanceHandleDEV": {"_debugHookTypes": null, "_debugID": 2439, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": [FiberNode], "_debugSource": [Object], "actualDuration": 3, "actualStartTime": 2839, "alternate": null, "child": null, "childExpirationTime": 0, "dependencies": null, "effectTag": 0, "elementType": "CTKBannerView", "expirationTime": 0, "firstEffect": null, "index": 0, "key": null, "lastEffect": null, "memoizedProps": [Object], "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": [Object], "ref": null, "return": [FiberNode], "selfBaseDuration": 1, "sibling": null, "stateNode": [Circular], "tag": 5, "treeBaseDuration": 1, "type": "CTKBannerView", "updateQueue": null}, "_nativeTag": 385, "viewConfig": {"NativeProps": [Object], "bubblingEventTypes": undefined, "directEventTypes": [Object], "uiViewClassName": "CTKBannerView", "validAttributes": [Object]}}, "defaultPrevented": undefined, "dispatchConfig": {"registrationName": "onAdError"}, "eventPhase": undefined, "isDefaultPrevented": [Function functionThatReturnsFalse], "isPropagationStopped": [Function functionThatReturnsFalse], "isTrusted": undefined, "nativeEvent": {"errorCode": 1001, "errorMessage": "No fill"}, "target": {"_children": [], "_internalFiberInstanceHandleDEV": {"_debugHookTypes": null, "_debugID": 2439, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": [FiberNode], "_debugSource": [Object], "actualDuration": 3, "actualStartTime": 2839, "alternate": null, "child": null, "childExpirationTime": 0, "dependencies": null, "effectTag": 0, "elementType": "CTKBannerView", "expirationTime": 0, "firstEffect": null, "index": 0, "key": null, "lastEffect": null, "memoizedProps": [Object], "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": [Object], "ref": null, "return": [FiberNode], "selfBaseDuration": 1, "sibling": null, "stateNode": [Circular], "tag": 5, "treeBaseDuration": 1, "type": "CTKBannerView", "updateQueue": null}, "_nativeTag": 385, "viewConfig": {"NativeProps": [Object], "bubblingEventTypes": undefined, "directEventTypes": [Object], "uiViewClassName": "CTKBannerView", "validAttributes": [Object]}}, "timeStamp": 1609920645720, "type": undefined}

Chandravardhan8998 avatar Jan 06 '21 08:01 Chandravardhan8998

We've released v7 today. Please upgrade and see if this helps :)

thymikee avatar Feb 10 '21 16:02 thymikee

I am running v7.0.3 and getting the same error trying to setup FB Ads using iOS.

jplandry908 avatar Apr 01 '21 23:04 jplandry908

@jplandry908 would you like to tackle this and send a PR with a fix? :)

thymikee avatar Apr 02 '21 08:04 thymikee

I am trying, but unfortunately have come to realize that I have no idea what I am doing (since I am not very familiar with objective c). :)

jplandry908 avatar Apr 02 '21 18:04 jplandry908

can anyone solve it

uzairdurani avatar Apr 17 '21 02:04 uzairdurani

same problem, can resolved?

albertsaenz avatar Jun 25 '21 23:06 albertsaenz

I am also facing the same issue... does anyone has any solution for this

prateekuttreja2020 avatar Nov 29 '22 11:11 prateekuttreja2020

i stuck with this problem too

milyas-jubelio avatar Dec 04 '22 14:12 milyas-jubelio

Hi

I am using this below version, "react-native-fbads": "^7.1.1", "react-native-fbsdk": "^3.0.0", "react": "18.0.0", "react-native": "0.69.12",

Can anyone solved this problem ?
FBSDK Error

rajeshdci avatar Jan 31 '24 05:01 rajeshdci