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 trialDavid Loder
4,987 PointsHas anyone seen this console error?
So when going through this video and looking at the console. I keep getting the error for this function:
function generateHTML(data) {
const section = document.createElement('section');
peopleList.appendChild(section);
section.innerHTML =
<img src=${data.thumbnail.source}>
<h2>${data.title}</h2>
<p>${data.description}</p>
<p>${data.extract}</p>
;
In the "section.innerHTML" I am getting a TypeError of "Cannot read property 'source' of"
Is this normal or is there a way to fix this?