angular-easyfb icon indicating copy to clipboard operation
angular-easyfb copied to clipboard

Cannot read property 'childNodes' of undefined

Open wudong opened this issue 9 years ago • 2 comments

Get this error while trying to use a facebook comments.

div(class="fb-comments" data-href="{{getAbsUrl()}}" 
     data-numposts="5" data-colorscheme="light" data-width="100%")
TypeError: Cannot read property 'childNodes' of undefined
    at nodeLinkFn (base.js:19233)
    at compositeLinkFn (base.js:18587)
    at nodeLinkFn (base.js:19233)
    at compositeLinkFn (base.js:18587)
    at compositeLinkFn (base.js:18590)
    at publicLinkFn (base.js:18466)
    at base.js:12959
    at Scope.$get.Scope.$eval (base.js:25910)
    at Scope.$get.Scope.$apply (base.js:26009)
    at bootstrapApply (base.js:12957)

and

TypeError: Cannot set property 'textContent' of undefined
    at Object.ngBindWatchAction [as fn] (base.js:31832)
    at Scope.$get.Scope.$digest (base.js:25752)
    at Scope.$get.Scope.$apply (base.js:26015)
    at bootstrapApply (base.js:12957)
    at Object.invoke (base.js:15694)
    at doBootstrap (base.js:12955)
    at bootstrap (base.js:12975)
    at angularInit (base.js:12869)
    at HTMLDocument.<anonymous> (base.js:37634)
    at jQuery.Callbacks.fire (base.js:3073)

Running With AngularJS 1.3. Error only happen with the above line of code enabled.

Any idea why?

wudong avatar Apr 16 '15 21:04 wudong

Hi @wudong ,

I tried to recreate the issue according to your code, and it works fine.

http://plnkr.co/edit/52W4iqvbitE4aKz47j1B?p=preview

Can you provide me a plunk for the issue?

pc035860 avatar Apr 17 '15 00:04 pc035860

problem is I couldn't reproduce it without it in my big junk of code.. although I'm certain it is related to the directive.. just wondering if anyone have any experience on this kind of angular exceptions so that I can look at my own code? maybe some conflict somewhere?

wudong avatar Apr 20 '15 12:04 wudong