Skip to content

error: TypeError: Cannot call method 'listen' of undefined #1

@niftylettuce

Description

@niftylettuce

If you are not in the current working directory of the Node script you're starting (e.g. app.js) then the following error occurs:

error: TypeError: Cannot call method 'listen' of undefined
    at Function.<anonymous> (/var/sites/my-project/node_modules/igloo/lib/boot/server.js:52:18)
    at next (/var/sites/my-project/node_modules/bootable/lib/initializer.js:43:15)
    at next (/var/sites/my-project/node_modules/bootable/lib/initializer.js:46:9)
    at next (/var/sites/my-project/node_modules/bootable/lib/initializer.js:46:9)
    at

However when you're inside of the cwd, it lets you run it fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions