Using Graph.cool with \auth\email-password - can't compile


#1

.\templates-master\auth\email-password

I need help.

Error
CODE
400
MESSAGE
Compilation failed: Unexpected reserved word
ERROR
Unexpected reserved word
SyntaxError: Unexpected reserved word
at Object.exports.runInThisContext (vm.js:53:16)
at WebtaskModule.compileWebtask (/data/sandbox/lib/module.js:91:32)
at Object.defaultJavascriptCompiler [as nodejsCompiler] (/data/sandbox/lib/compiler.js:124:30)
at module.exports.options.nodejsCompiler.fnCallback (/data/io/290a9f58b9f24801b19f780b513d3a48/webtask.js:5:11)
at /data/sandbox/lib/compiler.js:236:17
at /data/sandbox/node_modules/async/dist/async.js:3853:24
at replenish (/data/sandbox/node_modules/async/dist/async.js:946:17)
at iterateeCallback (/data/sandbox/node_modules/async/dist/async.js:931:17)
at /data/sandbox/node_modules/async/dist/async.js:906:16
at /data/sandbox/node_modules/async/dist/async.js:3858:clock1130:

I get error message. Please advise.


#2

It seems you are using these functions in a legacy project. Is that correct? If so, these templates are incompatible with legacy projects, and meant for use in CLI projects.


#3

Can you provide more context? It’s not clear how your setup looks like and what you do that results in this error message :slightly_smiling_face: