GithubHelp home page GithubHelp logo

TypeError: Object #<Object> has no method 'listen' about tobi HOT 4 OPEN

learnboost avatar learnboost commented on August 30, 2024
TypeError: Object # has no method 'listen'

from tobi.

Comments (4)

tj avatar tj commented on August 30, 2024

hmm can you post the stack trace?

from tobi.

codesplicer avatar codesplicer commented on August 30, 2024
Error: Debug
    at Object.<anonymous> (/Users/vik/local_repository/myapp/test/app.test.js:16:10)
    at Module._compile (module.js:404:26)
    at Object..js (module.js:410:10)
    at Module.load (module.js:336:31)
    at Function._load (module.js:297:12)
    at Array.0 (module.js:423:10)
    at EventEmitter._tickCallback (node.js:126:26)
Caught exception: TypeError: Object #<Object> has no method 'listen'

from tobi.

toxin20 avatar toxin20 commented on August 30, 2024

did you solve your problem?

i get the same message using tobi (same code as above). weird thing i also get this using zombiejs or mocha testing tools.

i'm using node 0.6.2 on ubuntu 10.04 and got the modules via npm install

from tobi.

nagyv avatar nagyv commented on August 30, 2024

probably you do not export your app from your server

app     = require('../app'),

you should check what app is, my guess is that it's {}

what can you do? simply write in your ../app the following:

var app = module.exports = express.createServer();

to get your app exported

from tobi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.