Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Yuichi Narisawa19,548 Points
I can follow the previous tutorial, but I cannot for this one. After I append listItems, console starts to complain
"Uncaught TypeError: Cannot set property 'onclick' of null at bindTaskEvents (app.js:90) at app.js:106 bindTaskEvents @ app.js:90 (anonymous) @ app.js:106"
I don't understand why this happens. Please help!
here is my workspace snapshot. https://w.trhou.se/vtfjt1k0hk
Ashley Carpenter13,393 Points
It looks like your problem is because it can't find the edit button. You're trying to find an edit button with a class of edit but you didn't add an edit class when you created the button.
Try and add a class or Id to your edit button when you create it. I'll add a code example below shortly.
You'll also have the same issue with the rest of the fields.