Skip to content Skip to sidebar Skip to footer

Zuck Js Library Cannot Read Property 'id' Of Null At New Window.zuckitadagalera.window

I'm trying to implement stories using zuck.js in my ionic 3 app and I get this error Cannot read property 'id' of null at new window.ZuckitaDaGalera.window.Zuck (http://localhost:8

Solution 1:

You need to put your Zuck related code somewhere where the current template with your div is already available. Currently it is null because you are trying to access the template before the component is even ready. Putting the code into ionViewDidEnter() should work.

Also declare the stories variable like this then:

let stories = ...

And move the buildItem() method out of the constructor-body, thats not where a function belongs.

Post a Comment for "Zuck Js Library Cannot Read Property 'id' Of Null At New Window.zuckitadagalera.window"