Search code examples
meteor

ReferenceError: Console is not defined


I am working on a bingo game with Meteor. I am now getting an error and since it is in the JS file (and I am writing Coffee), I have no idea where it's coming from.

Here is the full error:

ReferenceError: Console is not defined
    at app/Bingo.coffee.js:465:12
    at run (/Users/ppedrazzi/Dropbox/Paul's Stuff/MyApps/Meteor/bingo/.meteor/local/build/server/server.js:283:63)
    at Array.forEach (native)
    at Function._.each._.forEach (/usr/local/meteor/lib/node_modules/underscore/underscore.js:79:11)
    at run (/Users/ppedrazzi/Dropbox/Paul's Stuff/MyApps/Meteor/bingo/.meteor/local/build/server/server.js:283:7)

I have placed the coffee and html file in a gist here: https://gist.github.com/ppedrazzi/5303493

Thank you for any insight!!


Solution

  • It looks like line 334 of your bingo.coffee.

    In javascript everything is case sensitive so using a lowercase c

    console.log "Server started and collections cleared."
    

    instead of

    Console.log "Server started and collections cleared."
    

    is likely to fix the syntax error