'require' is not defined. I think it's pretty clear. If you show what the function does it may be easier but if I were you I would be looking, in the meantime, where in the function I'm using require and if I'm using it right.
On 7/23/14, 6:46 PM, Rohit Harchandani wrote: > Hi, I have just started playing around with node.js for a project. I > parsed a JSON object which had a javascript function and when I tried to > execute the function on the node.js server, I kept getting this error: > ReferenceError: require is not defined > I am sure i parsed the JSON object correctly to get the function, but > not sure how to run this function. > Thanks, > Rohit > > -- > Job board: http://jobs.nodejs.org/ > New group rules: > https://gist.github.com/othiym23/9886289#file-moderation-policy-md > Old group rules: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > --- > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to nodejs+unsubscr...@googlegroups.com > <mailto:nodejs+unsubscr...@googlegroups.com>. > To post to this group, send email to nodejs@googlegroups.com > <mailto:nodejs@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/nodejs/41c90927-ff6f-417d-abe2-5752492e2c47%40googlegroups.com > <https://groups.google.com/d/msgid/nodejs/41c90927-ff6f-417d-abe2-5752492e2c47%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout. -- Jose Luis Rivas - http://joseluisrivas.net Venezuela - GPG: 0xB9AC8C43 -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. To post to this group, send email to nodejs@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/53D0BCCB.6020106%40gmail.com. For more options, visit https://groups.google.com/d/optout.