yocontra / smog

HTML5/Node/WebSocket MongoDB panel
MIT License
443 stars 42 forks source link

doesn't run 'object is not a function' start.coffee:20:10 #9

Closed a7medkamel closed 12 years ago

a7medkamel commented 12 years ago

I can't seem to get it to run; installed it, installed coffee-script just in case.

does it need to run on same server as mongodb?

connect.staticCache() is deprecated and will be removed in 3.0 use varnish or similar reverse proxy caches.

node.js:201 throw e; // process.nextTick error, or 'error' event on first tick ^ TypeError: object is not a function at Object. (/usr/lib/node_modules/smog/start.coffee:20:10) at Object. (/usr/lib/node_modules/smog/start.coffee:45:4) at Module._compile (module.js:441:26) at Object..coffee (/usr/lib/node_modules/smog/node_modules/coffee-script/lib/coffee-script/coffee-script.js:22:21) at Module.load (module.js:348:32) at Function._load (module.js:308:12) at Module.require (module.js:354:17) at require (module.js:370:17) at Object. (/usr/lib/node_modules/smog/bin/smog:4:1) at Module._compile (module.js:441:26)

nicocube commented 12 years ago

Almost identical issue, so I write it here as a comment.

I installed with:

$ sudo npm install smog -g

This went smoothly with no error message at all, then:

$ smog
connect.staticCache() is deprecated and will be removed in 3.0
use varnish or similar reverse proxy caches.

/usr/lib/node_modules/smog/start.coffee:20
  vein = new Vein(server);
         ^
TypeError: object is not a function
    at Object.<anonymous> (/usr/lib/node_modules/smog/start.coffee:20:10)
    at Object.<anonymous> (/usr/lib/node_modules/smog/start.coffee:45:4)
    at Module._compile (module.js:449:26)
    at Object.require.extensions..coffee (/usr/lib/node_modules/smog/node_modules/coffee-script/lib/coffee-script/coffee-script.js:22:21)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (/usr/lib/node_modules/smog/bin/smog:4:1)
    at Module._compile (module.js:449:26)
sebastianhoitz commented 12 years ago

Yes, you have to install an older version of Vein.

The author specified Vein * as version in package.json, but the newest version breaks smog.

yocontra commented 12 years ago

Oops this should be a simple fix - one moment

yocontra commented 12 years ago

Fixed in 0.0.8