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!
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
load() function isn't working on Windows
My seed.js folder is in the same directory as the bin folder. I am assured of this when i run ls(). However when I run the load command, i get this:
load('./seed.js') 2018-11-08T12:44:00.070+0100 E QUERY [js] SyntaxError: illegal character @(shell):1:6
I have tried using double quotation marks also, but I get the same thing.
Kevin SData Analysis Techdegree Student 15,862 Points
My load() function was not working either. It turns out that I named my db I found this post that fixed it, however.
When I followed the video to create the db, I created it as mongobasics instead of mongoBasics like it is in the seed file. I changed the seed file to match my database, and it worked!
Hope this helps
Thanks for the reply Kevin, I got it figured out :)