This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-02
Channels
- # bangalore-clj (4)
- # beginners (30)
- # boot (11)
- # cljsrn (11)
- # clojure (18)
- # clojure-conj (2)
- # clojure-italy (1)
- # clojure-uk (6)
- # clojurescript (14)
- # clojurewerkz (1)
- # core-async (3)
- # fulcro (14)
- # hoplon (12)
- # lumo (7)
- # off-topic (24)
- # onyx (2)
- # portkey (1)
- # protorepl (1)
- # re-frame (8)
- # spacemacs (14)
- # specter (95)
- # unrepl (14)
Can I please have a hand with lein-cljsbuild and advanced optimisation? This little demo project (with prod
profile) will happily compile but fails to run... I've also tried compiling with source maps but the source maps don't seem to be recognised by node. Any help is much appriciated! https://github.com/au-phiware/lein-new/issues/2
@au-phiware I took a quick look, it seems that you are missing extern definitions (https://clojurescript.org/reference/compiler-options#externs) . There are some node.js externs defined at https://github.com/dcodeIO/node.js-closure-compiler-externs , using the http.js and contrib/Express.js extern files should solve your issue. You could also consider using the recently improved node modules support instead https://clojurescript.org/news/2017-07-12-clojurescript-is-not-an-island-integrating-node-modules
thanks for the pointers @symfrog, I've added :externs but I'm not sure if I've done it correctly because I'm still encountering the TypeError... I think I shall remove mount
since it appears to be swallowing the stacktrace
so, as it turns out I need to say (new (nodejs/require "express"))
not ((nodejs/require "express"))
. Sorry, I'm new to cljs...
this one looks like a bug in lein-cljsbuild: https://github.com/au-phiware/lein-new/issues/3
err, I think it is actually a bug in org.clojure/clojurescript...
boot is now just saying ot me: "failed compiling file :..../..../blah.cljs" and it doesn't give me any error message as to why it failed to compile
Missing error message sounds like a problem with old boot-cljs, fixed in latest releases
@U061V0GG2 : updating boot-cljs version tifxed it; thanks!
in clhs, how do (:require [http://goog.net]) }
No such namespace: http://goog.net, could not locate goog/net.cljs, goog/net.cljc, or JavaScript source providing "http://goog.net" in file src/client/util/comm.cljs