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

Require cycle warning in console

Open grean opened this issue 4 years ago • 6 comments

Error Message : 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.

Am i the only one having this messange in my console ? Can´t find some help in the other issues :(

grean avatar May 29 '20 12:05 grean

same here

kostiantyn-solianyk avatar Jun 09 '20 13:06 kostiantyn-solianyk

Same, any update?

TrejoCode avatar Jul 24 '20 18:07 TrejoCode

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.

Got It to, is there any update ?

jacow avatar Mar 16 '21 13:03 jacow

I think we need to manual update "node_modules/react-native-fbads/dist/lib/native-ads/withNativeAd.js" file from : import { AdIconView, MediaView } from '../index'; to :

import { MediaView } from './MediaViewManager';
import { AdIconView } from './AdIconViewManager';

The message was gone after i'm doing that.

jacow avatar Mar 16 '21 13:03 jacow

same problem react native facebook ads not showing getting this error

error {"_dispatchInstances": {"_debugHookTypes": null, "_debugID": 1188, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": {"_debugHookTypes": null, "_debugID": 904, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": [FiberNode], "_debugSource": [Object], "actualDuration": 10, "actualStartTime": 3694, "alternate": null, "child": [Circular], "childExpirationTime": 0, "dependencies": null, "effectTag": 1, "elementType": [Function BannerView], "expirationTime": 0, "firstEffect": null, "index": 2, "key": null, "lastEffect": null, "memoizedProps": [Object], "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": [Object], "ref": null, "return": [FiberNode], "selfBaseDuration": 2, "sibling": null, "stateNode": null, "tag": 0, "treeBaseDuration": 2, "type": [Function BannerView], "updateQueue": null}, "_debugSource": {"columnNumber": 13, "fileName": "D:\react\react native\project\seven\FakeCall\node_modules\react-native-fbads\dist\lib\BannerViewManager.js", "lineNumber": 23}, "actualDuration": 8, "actualStartTime": 3696, "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": undefined, "onAdPress": undefined, "placementId": "273210914348817_273210947682147", "size": 50, "style": [Array]}, "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": {"onAdError": [Function onError], "onAdLoad": undefined, "onAdPress": undefined, "placementId": "273210914348817_273210947682147", "size": 50, "style": [Array]}, "ref": null, "return": {"_debugHookTypes": null, "_debugID": 904, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": [FiberNode], "_debugSource": [Object], "actualDuration": 10, "actualStartTime": 3694, "alternate": null, "child": [Circular], "childExpirationTime": 0, "dependencies": null, "effectTag": 1, "elementType": [Function BannerView], "expirationTime": 0, "firstEffect": null, "index": 2, "key": null, "lastEffect": null, "memoizedProps": [Object], "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": [Object], "ref": null, "return": [FiberNode], "selfBaseDuration": 2, "sibling": null, "stateNode": null, "tag": 0, "treeBaseDuration": 2, "type": [Function BannerView], "updateQueue": null}, "selfBaseDuration": 0, "sibling": null, "stateNode": {"_children": [Array], "_internalFiberInstanceHandleDEV": [Circular], "_nativeTag": 155, "viewConfig": [Object]}, "tag": 5, "treeBaseDuration": 0, "type": "CTKBannerView", "updateQueue": null}, "_dispatchListeners": [Function onError], "_targetInst": {"_debugHookTypes": null, "_debugID": 1188, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": {"_debugHookTypes": null, "_debugID": 904, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": [FiberNode], "_debugSource": [Object], "actualDuration": 10, "actualStartTime": 3694, "alternate": null, "child": [Circular], "childExpirationTime": 0, "dependencies": null, "effectTag": 1, "elementType": [Function BannerView], "expirationTime": 0, "firstEffect": null, "index": 2, "key": null, "lastEffect": null, "memoizedProps": [Object], "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": [Object], "ref": null, "return": [FiberNode], "selfBaseDuration": 2, "sibling": null, "stateNode": null, "tag": 0, "treeBaseDuration": 2, "type": [Function BannerView], "updateQueue": null}, "_debugSource": {"columnNumber": 13, "fileName": "D:\react\react native\project\seven\FakeCall\node_modules\react-native-fbads\dist\lib\BannerViewManager.js", "lineNumber": 23}, "actualDuration": 8, "actualStartTime": 3696, "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": undefined, "onAdPress": undefined, "placementId": "273210914348817_273210947682147", "size": 50, "style": [Array]}, "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": {"onAdError": [Function onError], "onAdLoad": undefined, "onAdPress": undefined, "placementId": "273210914348817_273210947682147", "size": 50, "style": [Array]}, "ref": null, "return": {"_debugHookTypes": null, "_debugID": 904, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": [FiberNode], "_debugSource": [Object], "actualDuration": 10, "actualStartTime": 3694, "alternate": null, "child": [Circular], "childExpirationTime": 0, "dependencies": null, "effectTag": 1, "elementType": [Function BannerView], "expirationTime": 0, "firstEffect": null, "index": 2, "key": null, "lastEffect": null, "memoizedProps": [Object], "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": [Object], "ref": null, "return": [FiberNode], "selfBaseDuration": 2, "sibling": null, "stateNode": null, "tag": 0, "treeBaseDuration": 2, "type": [Function BannerView], "updateQueue": null}, "selfBaseDuration": 0, "sibling": null, "stateNode": {"_children": [Array], "_internalFiberInstanceHandleDEV": [Circular], "_nativeTag": 155, "viewConfig": [Object]}, "tag": 5, "treeBaseDuration": 0, "type": "CTKBannerView", "updateQueue": null}, "bubbles": undefined, "cancelable": undefined, "currentTarget": {"_children": [], "_internalFiberInstanceHandleDEV": {"_debugHookTypes": null, "_debugID": 1188, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": [FiberNode], "_debugSource": [Object], "actualDuration": 8, "actualStartTime": 3696, "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": 0, "sibling": null, "stateNode": [Circular], "tag": 5, "treeBaseDuration": 0, "type": "CTKBannerView", "updateQueue": null}, "_nativeTag": 155, "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": 1188, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": [FiberNode], "_debugSource": [Object], "actualDuration": 8, "actualStartTime": 3696, "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": 0, "sibling": null, "stateNode": [Circular], "tag": 5, "treeBaseDuration": 0, "type": "CTKBannerView", "updateQueue": null}, "_nativeTag": 155, "viewConfig": {"NativeProps": [Object], "bubblingEventTypes": undefined, "directEventTypes": [Object], "uiViewClassName": "CTKBannerView", "validAttributes": [Object]}}, "timeStamp": 1618567944364, "type": undefined}

uzairdurani avatar Apr 16 '21 06:04 uzairdurani

same problem react native facebook ads not showing getting this error

error {"_dispatchInstances": {"_debugHookTypes": null, "_debugID": 1188, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": {"_debugHookTypes": null, "_debugID": 904, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": [FiberNode], "_debugSource": [Object], "actualDuration": 10, "actualStartTime": 3694, "alternate": null, "child": [Circular], "childExpirationTime": 0, "dependencies": null, "effectTag": 1, "elementType": [Function BannerView], "expirationTime": 0, "firstEffect": null, "index": 2, "key": null, "lastEffect": null, "memoizedProps": [Object], "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": [Object], "ref": null, "return": [FiberNode], "selfBaseDuration": 2, "sibling": null, "stateNode": null, "tag": 0, "treeBaseDuration": 2, "type": [Function BannerView], "updateQueue": null}, "_debugSource": {"columnNumber": 13, "fileName": "D:\react\react native\project\seven\FakeCall\node_modules\react-native-fbads\dist\lib\BannerViewManager.js", "lineNumber": 23}, "actualDuration": 8, "actualStartTime": 3696, "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": undefined, "onAdPress": undefined, "placementId": "273210914348817_273210947682147", "size": 50, "style": [Array]}, "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": {"onAdError": [Function onError], "onAdLoad": undefined, "onAdPress": undefined, "placementId": "273210914348817_273210947682147", "size": 50, "style": [Array]}, "ref": null, "return": {"_debugHookTypes": null, "_debugID": 904, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": [FiberNode], "_debugSource": [Object], "actualDuration": 10, "actualStartTime": 3694, "alternate": null, "child": [Circular], "childExpirationTime": 0, "dependencies": null, "effectTag": 1, "elementType": [Function BannerView], "expirationTime": 0, "firstEffect": null, "index": 2, "key": null, "lastEffect": null, "memoizedProps": [Object], "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": [Object], "ref": null, "return": [FiberNode], "selfBaseDuration": 2, "sibling": null, "stateNode": null, "tag": 0, "treeBaseDuration": 2, "type": [Function BannerView], "updateQueue": null}, "selfBaseDuration": 0, "sibling": null, "stateNode": {"_children": [Array], "_internalFiberInstanceHandleDEV": [Circular], "_nativeTag": 155, "viewConfig": [Object]}, "tag": 5, "treeBaseDuration": 0, "type": "CTKBannerView", "updateQueue": null}, "_dispatchListeners": [Function onError], "_targetInst": {"_debugHookTypes": null, "_debugID": 1188, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": {"_debugHookTypes": null, "_debugID": 904, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": [FiberNode], "_debugSource": [Object], "actualDuration": 10, "actualStartTime": 3694, "alternate": null, "child": [Circular], "childExpirationTime": 0, "dependencies": null, "effectTag": 1, "elementType": [Function BannerView], "expirationTime": 0, "firstEffect": null, "index": 2, "key": null, "lastEffect": null, "memoizedProps": [Object], "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": [Object], "ref": null, "return": [FiberNode], "selfBaseDuration": 2, "sibling": null, "stateNode": null, "tag": 0, "treeBaseDuration": 2, "type": [Function BannerView], "updateQueue": null}, "_debugSource": {"columnNumber": 13, "fileName": "D:\react\react native\project\seven\FakeCall\node_modules\react-native-fbads\dist\lib\BannerViewManager.js", "lineNumber": 23}, "actualDuration": 8, "actualStartTime": 3696, "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": undefined, "onAdPress": undefined, "placementId": "273210914348817_273210947682147", "size": 50, "style": [Array]}, "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": {"onAdError": [Function onError], "onAdLoad": undefined, "onAdPress": undefined, "placementId": "273210914348817_273210947682147", "size": 50, "style": [Array]}, "ref": null, "return": {"_debugHookTypes": null, "_debugID": 904, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": [FiberNode], "_debugSource": [Object], "actualDuration": 10, "actualStartTime": 3694, "alternate": null, "child": [Circular], "childExpirationTime": 0, "dependencies": null, "effectTag": 1, "elementType": [Function BannerView], "expirationTime": 0, "firstEffect": null, "index": 2, "key": null, "lastEffect": null, "memoizedProps": [Object], "memoizedState": null, "mode": 8, "nextEffect": null, "pendingProps": [Object], "ref": null, "return": [FiberNode], "selfBaseDuration": 2, "sibling": null, "stateNode": null, "tag": 0, "treeBaseDuration": 2, "type": [Function BannerView], "updateQueue": null}, "selfBaseDuration": 0, "sibling": null, "stateNode": {"_children": [Array], "_internalFiberInstanceHandleDEV": [Circular], "_nativeTag": 155, "viewConfig": [Object]}, "tag": 5, "treeBaseDuration": 0, "type": "CTKBannerView", "updateQueue": null}, "bubbles": undefined, "cancelable": undefined, "currentTarget": {"_children": [], "_internalFiberInstanceHandleDEV": {"_debugHookTypes": null, "_debugID": 1188, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": [FiberNode], "_debugSource": [Object], "actualDuration": 8, "actualStartTime": 3696, "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": 0, "sibling": null, "stateNode": [Circular], "tag": 5, "treeBaseDuration": 0, "type": "CTKBannerView", "updateQueue": null}, "_nativeTag": 155, "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": 1188, "_debugIsCurrentlyTiming": false, "_debugNeedsRemount": false, "_debugOwner": [FiberNode], "_debugSource": [Object], "actualDuration": 8, "actualStartTime": 3696, "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": 0, "sibling": null, "stateNode": [Circular], "tag": 5, "treeBaseDuration": 0, "type": "CTKBannerView", "updateQueue": null}, "_nativeTag": 155, "viewConfig": {"NativeProps": [Object], "bubblingEventTypes": undefined, "directEventTypes": [Object], "uiViewClassName": "CTKBannerView", "validAttributes": [Object]}}, "timeStamp": 1618567944364, "type": undefined}

Hi, Did you resolve this error?

chungtvdev avatar Jan 07 '23 04:01 chungtvdev