Howdy, campers. I am working through the clementine tutorial (http://www.clementinejs.com/tutorials/tutorial-beginner.html) at the moment (I am using c9.io) when I ran into a bit of a snag.
After doing everything correctly up to about the mid-point of the tutorial, and then double-checking that I had done everything correctly, testing resulted in the following error message: “TypeError: db.collection is not a function”
This actually through me for a loop at first. I could not figure out what I was doing wrong with db.
Turns out, nothing.
I finally came across this solution:
npm uninstall mongodb --save
npm install [email protected] --save
Problem was with the library I was using. The above commands worked like a charm and now I no longer get the error.
On to the next bug!