Errors while deploying standalone node.js app

Not applicable

I'm following the guidance here (https://docs.apigee.com/api-services/content/deploying-standalone-nodejs-app) and trying to import my simple hello world node js App using command line.. it keeps coming back with below error in random places on random files..

does this process really work?

Error: Error uploading resource src/app.js: 500

{

"code" : "messaging.config.beans.RepositoryError",

"message" : "Repository error",

"contexts" : [ ],

"cause" : {

"code" : "scripts.node.CompilationFailure",

"message" : "Compilation error:

app.js:1 missing ; before statement", "contexts" : [ ]

} }

0 3 249
3 REPLIES 3

sydub7
Participant IV

Its a code complication issue. Please review the last line of the error : app.js:1 missing ; before statement", "contexts" : [ ].. it appears a semicolon is missing in your code. It would be helpful if you can share your code.

Sorry, its complaining about ";" missing before line 1.

My first line is "use strict";, even, if I delete that line, this error wouldn't go away..

Hi, Were you able to fix this issue?