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

JavaScript D3.js Data Binding with D3.js Request Methods

Joshua Erskine
Joshua Erskine
7,706 Points

csvRequest: "data" returns error

Video: 5:48

I have opened/launched csvReqest.html; opened developer tools and typed "data" into console (as done in video), however it returns Uncaught ReferenceError: data not defined....

This could be an issue with workspaces. But I am at a loss to resolve this.

screenshot: http://postimg.org/image/epyxd21ez/

Thank you

Guerilla Gorilla
Guerilla Gorilla
1,770 Points

A little late, but the reason data returns error is due to the debugger not stopping at first run once the page is previewed. If you reload the csvRequest.html page (CTRL-R), a prompt will pop up the say "Paused in Debugger". Another thing to note that, unless the DevTools are open (for Chrome) the debugger will never stop.