Skip to content

App works locally but crashes on Heroku? #68

@Broham

Description

@Broham

I followed the steps in this stackoverflow question, but for some reason the app crashes on heroku even though it works on my local machine. I checked the logs and found this information:

2016-09-20T19:28:18.096258+00:00 heroku[web.1]: State changed from crashed to starting
2016-09-20T19:28:39.792352+00:00 heroku[web.1]: Starting process with command `node build/bundle/main.js`
2016-09-20T19:28:44.018244+00:00 app[web.1]: 
2016-09-20T19:28:44.018578+00:00 app[web.1]: assert.js:93
2016-09-20T19:28:44.018940+00:00 app[web.1]:   throw new assert.AssertionError({
2016-09-20T19:28:44.018944+00:00 app[web.1]:         ^
2016-09-20T19:28:44.021453+00:00 app[web.1]: AssertionError: "undefined" === "function"
2016-09-20T19:28:44.021455+00:00 app[web.1]:     at wrapPathFunction (/app/build/bundle/programs/server/mini-files.js:77:10)
2016-09-20T19:28:44.021456+00:00 app[web.1]:     at Object.<anonymous> (/app/build/bundle/programs/server/mini-files.js:108:24)
2016-09-20T19:28:44.021456+00:00 app[web.1]:     at Module._compile (module.js:456:26)
2016-09-20T19:28:44.021457+00:00 app[web.1]:     at Object.Module._extensions..js (module.js:474:10)
2016-09-20T19:28:44.021458+00:00 app[web.1]:     at Module.load (module.js:356:32)
2016-09-20T19:28:44.021459+00:00 app[web.1]:     at Function.Module._load (module.js:312:12)
2016-09-20T19:28:44.021459+00:00 app[web.1]:     at Module.require (module.js:364:17)
2016-09-20T19:28:44.021460+00:00 app[web.1]:     at require (module.js:380:17)
2016-09-20T19:28:44.021461+00:00 app[web.1]:     at Object.<anonymous> (/app/build/bundle/programs/server/boot.js:9:13)
2016-09-20T19:28:44.021461+00:00 app[web.1]:     at Module._compile (module.js:456:26)
2016-09-20T19:28:44.174809+00:00 heroku[web.1]: State changed from starting to crashed
2016-09-20T19:28:44.137122+00:00 heroku[web.1]: Process exited with status 8

Any idea why this might be happening or how I can fix it?

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