Help with Server Error 500 for node js app. But works fine locally?!

64 views
Skip to first unread message

Mike C

unread,
Nov 10, 2018, 7:24:23 PM11/10/18
to Google App Engine

I got the following error:

Error: Cannot find module '/srv/server.js'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Function.Module.runMain (module.js:694:10)
at startup (bootstrap_node.js:204:16)
at bootstrap_node.js:625:3

=========================
my package.json has  "main": "app.js",...
It ran no problem locally. It is using 'runtime: nodejs8' in app.yaml

What did I do wrong ?!

Olivier Yiptong

unread,
Nov 11, 2018, 4:16:59 PM11/11/18
to google-a...@googlegroups.com
Did you try:

{
...
“scripts”: {
  “start”: “node app.js”
  }
}

?

Sent from my phone
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/db3a1f8a-662e-4446-a2f8-6f6b60b1fd4f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages