Closed blah238 closed 10 years ago
I don't think it likes that return
statement in the catch
block at the top-level. It's not inside any function. Apparently Node.js is fine with that and treats it as if the whole module is being evaluated inside a function.
Hmm.
Since it's in your code, could you just remove the return statement? If using return
like that is idiomatic, I should find a way to support it, but I don't think I've seen it before.
Sorry it took so long to respond. I wish I could have responded "19 days ago", but hopefully this problem hasn't kept you up at night. :)
Whoops, sorry I missed your response until now. That was exactly it. I commented out the return statement and it works! I will let the Sails.js guys know. Thanks!
I have managed to get node-theseus to launch a sails.js app at 0.9.16 (stable) but at 0.10.0-rc5 (beta) it fails with the following error:
Any ideas as to what may be going wrong here?