Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: findDOMNode was called on an unmounted component #43

Open
ethanselzer opened this issue Sep 5, 2017 · 3 comments
Open

Error: findDOMNode was called on an unmounted component #43

ethanselzer opened this issue Sep 5, 2017 · 3 comments

Comments

@ethanselzer
Copy link

ethanselzer commented Sep 5, 2017

I am using react-gpt on React 15.0.1 and In some cases the message below is printed in the console as a warning. It does not seem to interfere with ads. I think the issue may be related to this line in thefoldCheck method. When I set renderWhenViewable false, I do not get the warning. Please let me know your thoughts.

Thank you for creating this very useful component!

Console Message:
Ad: Failed to load gpt for //www.googletagservices.com/tag/js/gpt.js Error: findDOMNode was called on an unmounted component.
at invariant (webpack:///.//fbjs/lib/invariant.js?:44:15)
at Object.findDOMNode (webpack:///./
/react/lib/findDOMNode.js?:50:21)
at Bling.foldCheck (webpack:///.//react-gpt/lib/Bling.js?:250:79)
at Bling.onScriptLoaded (webpack:///./
/react-gpt/lib/Bling.js?:219:22)
at
From previous event:
at Bling.componentDidMount (webpack:///.//react-gpt/lib/Bling.js?:124:62)
at CallbackQueue.notifyAll (webpack:///./
/react/lib/CallbackQueue.js?:66:22)
at ReactReconcileTransaction.close (webpack:///.//react/lib/ReactReconcileTransaction.js?:79:26)
at ReactReconcileTransaction.closeAll (webpack:///./
/react/lib/Transaction.js?:202:25)
at ReactReconcileTransaction.perform (webpack:///.//react/lib/Transaction.js?:149:16)
at ReactUpdatesFlushTransaction.perform (webpack:///./
/react/lib/Transaction.js?:136:20)
at ReactUpdatesFlushTransaction.perform (webpack:///.//react/lib/ReactUpdates.js?:89:38)
at flushBatchedUpdates (webpack:///./
/react/lib/ReactUpdates.js?:165:19)
at wrapper (webpack:///.//react/lib/ReactPerf.js?:66:21)
at ReactUpdatesFlushTransaction.close (webpack:///./
/react/lib/ReactUpdates.js?:47:7)
at ReactUpdatesFlushTransaction.closeAll (webpack:///.//react/lib/Transaction.js?:202:25)
at ReactUpdatesFlushTransaction.perform (webpack:///./
/react/lib/Transaction.js?:149:16)
at ReactUpdatesFlushTransaction.perform (webpack:///.//react/lib/ReactUpdates.js?:89:38)
at Object.flushBatchedUpdates (webpack:///./
/react/lib/ReactUpdates.js?:165:19)
at Object.wrapper [as flushBatchedUpdates] (webpack:///.//react/lib/ReactPerf.js?:66:21)
at ReactDefaultBatchingStrategyTransaction.closeAll (webpack:///./
/react/lib/Transaction.js?:202:25)
at ReactDefaultBatchingStrategyTransaction.perform (webpack:///.//react/lib/Transaction.js?:149:16)
at Object.batchedUpdates (webpack:///./
/react/lib/ReactDefaultBatchingStrategy.js?:63:19)
at Object.enqueueUpdate (webpack:///./~/react/lib/ReactUpdates.js?:194:22)

@jdwinall-tm
Copy link

@ethanselzer which version of react-gpt are you using?

@ethanselzer
Copy link
Author

@jdwinall-tm - v0.2.5

@ajay-padamata
Copy link

Facing the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants