6 comments
Comment actions Permalink

It is definitely not a WebStorm issue... Please try changing your server code as follows:

var app = require('./app');

var port = process.env.PORT || 3000;

app.set('port', port);
app.listen(app.get('port'), function(){
    console.log('Express web server is listening on port ' + app.get('port'));
});



In you code you are passing a callback to app.get() instead of app.listen()

0
Comment actions Permalink

that's exactly what I already have in my server.js.  Am I missing something in your reply?

0
Comment actions Permalink

christ are you fing kidding me.  I see it, I was missing a ')' for the following:

 
app.listen(app.get('port')


I had

 
app.listen(app.get('port'
  
wtf!  why didn't webstorm intellisense bitch about this?  And yea no wonder it's so f'd up, it was messing with me big time.  
0
Comment actions Permalink

Yes, you are - a ')' after

app.get('port'


the code is still syntactically correct, so WebStorm doesn't show any errors, but semantics is broken

0

Please sign in to leave a comment.