Hi, what are the various options for :target ( beyond :nodejs)
:websocket seems to be another
Iam trying to use lumo to produce javascript I can use with OpenWhisk. Has anyone tried this?
If I start with this I get: { "error": "Initialization has failed due to: SyntaxError: Invalid or unexpected token\n at NodeActionRunner.init (/nodejsAction/runner.js:79:109)\n at doInit (/nodejsAction/src/service.js:143:31)\n at initCode (/nodejsAction/src/service.js:82:24)\n at /nodejsAction/app.js:62:13\n at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)\n at next (/node_modules/express/lib/router/route.js:137:13)\n at Route.dispatch (/node_modules/express/lib/router/route.js:112:3)\n at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)\n at /node_modules/express/lib/router/index.js:281:22\n at Function.process_params (/node_modules/express/lib/router/index.js:335:12)" }
If I remove the shell directive and wrap the initial section in a function main, it works
Is there a directive which will produce the *.js file in this format?
is lumo reading from node_modules
when I do lumo file.cljs
?
I have a strange error that it cannot find a js library that is in node_modules
ok so if I do ./lumo /tmp/tmp.0BjCyWLnRv/test.cljs
then node_modules
cannot be read
I opened an issue here: https://github.com/grav/aws-lumo-cljs-runtime/issues/4
I have just discovered that... the --main
option takes a main but if the main returns a promise it still exits without waiting? Am I right or I am seeing the ghosts?
oh my node knowledge might need some refreshing
node should wait for pending promises to resolve before exiting
if you’re not seeing this then it’s probably a bug
ok thanks yep I have just read that too