Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Error when deploying at Heroku (Maybe a versionissue) #51

Closed
jeppestrom opened this Issue Nov 2, 2012 · 6 comments

Comments

Projects
None yet
3 participants

Hey guys.

When I'm deploying my NodeApp at Heroku I get this error.
I've been asking around and other people have the same issue.

(It's working fine locally).

This is the error:

2012-11-02T10:22:17+00:00 heroku[web.1]: Starting process with command node app.js
2012-11-02T10:22:18+00:00 app[web.1]: at Object. (/app/node_modules/emailjs/smtp/message.js:17:4)
2012-11-02T10:22:18+00:00 app[web.1]: at Module._compile (module.js:446:26)
2012-11-02T10:22:18+00:00 app[web.1]: at Object..js (module.js:464:10)
2012-11-02T10:22:18+00:00 app[web.1]: at Module.load (module.js:353:31)
2012-11-02T10:22:18+00:00 app[web.1]: at Function._load (module.js:311:12)
2012-11-02T10:22:18+00:00 app[web.1]: at Module.require (module.js:359:17)
2012-11-02T10:22:18+00:00 app[web.1]: at require (module.js:375:17)
2012-11-02T10:22:18+00:00 app[web.1]: at Module.require (module.js:359:17)
2012-11-02T10:22:18+00:00 app[web.1]: at Function._load (module.js:279:25)
2012-11-02T10:22:18+00:00 app[web.1]: at Function._resolveFilename (module.js:337:11)
2012-11-02T10:22:18+00:00 app[web.1]: ^
2012-11-02T10:22:18+00:00 app[web.1]: Error: Cannot find module 'bufferjs/concat'
2012-11-02T10:22:18+00:00 app[web.1]: throw new Error("Cannot find module '" + request + "'");
2012-11-02T10:22:18+00:00 app[web.1]: module.js:337
2012-11-02T10:22:18+00:00 app[web.1]:
2012-11-02T10:22:19+00:00 heroku[web.1]: Process exited with status 1
2012-11-02T10:22:19+00:00 heroku[web.1]: State changed from starting to crashed
2012-11-02T10:32:25+00:00 heroku[web.1]: State changed from crashed to down

It's already committed in latest release so it's not that I guess.

Owner

eleith commented Nov 13, 2012

what version of node are you running?

for older versions of node, an external library 'bufferjs' should be installed. otherwise, nodejs provides the necessary functions natively and that library won't be required at all.

let me know, and i can help you debug this further.

Hey I'm running node v0.8.12.
Can it be something with npm?

Owner

eleith commented Nov 13, 2012

what happens when you run in a node repl Buffer.concat ? i believe with node 8.12 buffer concat should be provided and you do not need the older buffer concat library that emailjs used to depend on...

Ahhh - that comment made me specify the version of emailjs and it seems to have fixed the problem. Under dependencies I had just written emailjs: "*" - quite silly actually, but thanks :).

@jeppestrom jeppestrom closed this Nov 14, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment