It seems like something is trying to require ("server") somewhere in your application, which is optional. The error comes from the .js module, which deals with the requirement of node modules. If you could provide your Procfile and possibly some source code, it would be easier to relate the problem, but at first glance it looks like a relative path pointing to /app/server.js somewhere in your server code, which shouldn't do that.