Unclear Mongoose error?

Sigh. Unfortunately, while you'd think testSchedulerModel. Coffee:12 would mean "line 12 of testSchedulerModel.

Coffee it actually means "line 12 of the JavaScript that testSchedulerModel. Coffee is compiled to. The problem is that there's currently no way to trace errors back to the original CoffeeScript (at least not under Node) So, you'll have to compile testSchedulerModel.

Coffee as JS and see what line 12 is there Better debugging tools for CoffeeScript are coming, but for now, it's probably best that you set up a Cakefile that compiles your code to JS before running it, to avoid such confusion By the way, there is an open issue regarding those coffee filenames in the stack trace: issue 987.

Sigh. Unfortunately, while you'd think testSchedulerModel. Coffee:12 would mean "line 12 of testSchedulerModel.

Coffee, it actually means "line 12 of the JavaScript that testSchedulerModel. Coffee is compiled to. The problem is that there's currently no way to trace errors back to the original CoffeeScript (at least not under Node).

So, you'll have to compile testSchedulerModel. Coffee as JS and see what line 12 is there. Better debugging tools for CoffeeScript are coming, but for now, it's probably best that you set up a Cakefile that compiles your code to JS before running it, to avoid such confusion.By the way, there is an open issue regarding those .

Coffee filenames in the stack trace: issue 987.

Thank you. Makes me wonder if CoffeeScript is more of a headache than its worth sometimes. – Igor G.

Sep 22 at 23:24.

Trevor: Kudos for the tip! I solved my issue. It turns out that I cannot have objects inside of arrays when defining my schema in Mongoose.

I was doing it like this: AdUnitSchema = new mongoose. Schema venue: { id: ObjectId, name: String } , geotarget: { id: ObjectId, name: String } But in actuality, I had to create separate schemas, and reference them like this: AdUnitSchema = new mongoose. Schema venue: VenueSchema geotarget: GeotargetSchema.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions