This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-24
Channels
- # beginners (64)
- # calva (40)
- # cider (76)
- # clara (13)
- # clojure (72)
- # clojure-dev (34)
- # clojure-italy (4)
- # clojure-nl (14)
- # clojure-poland (1)
- # clojure-uk (30)
- # clojurescript (58)
- # clr (10)
- # core-async (101)
- # cursive (31)
- # datomic (9)
- # emacs (20)
- # fulcro (2)
- # jackdaw (1)
- # jobs (3)
- # juxt (3)
- # luminus (4)
- # lumo (15)
- # mount (4)
- # nrepl (29)
- # nyc (1)
- # off-topic (27)
- # qlkit (1)
- # quil (5)
- # re-frame (19)
- # reitit (8)
- # remote-jobs (4)
- # rewrite-clj (5)
- # shadow-cljs (45)
- # spacemacs (22)
- # sql (9)
- # uncomplicate (1)
- # xtdb (14)
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