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 trialElroy Mihailov
1,209 PointsPlaylist not populating songs.
I've gone through the playlist project videos several times copying the code in the examples and my playlist does not populate with songs. I have no console errors so I'm not sure whats going on. I'm sure it's probably something like a typo somewhere but I can't seem to find it. Any help would be appreciated. Is there a way I can share my workspace?
Elroy Mihailov
1,209 PointsAwesome..thanks. Here is the link to my workspace. https://w.trhou.se/wbagod8ldp
1 Answer
Joel Bardsley
31,249 PointsIn your app.js file, your playlist.renderInElement method never gets fired:
playlist.renderInElement = (playlistElement);
It looks like you're inadvertently overriding instead of setting the playlistElement as its parameter.
Alan White
9,465 PointsJoel is correct.
Should be:
playlist.renderInElement(playlistElement);
//Note the removal of the equals sign.
...At least I think that is what Joel is eluding at. I am new to this myself.
Jennifer Nordell
Treehouse TeacherJennifer Nordell
Treehouse TeacherElroy Mihailov Yup there sure is! If you open your workspace on the upper right hand side you'll find a camera icon. You can take a snapshot. Click on it and then paste the link here. We'll be able to view all of your code and then (hopefully) help you with your problem!