This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-14
Channels
- # beginners (19)
- # boot (11)
- # cider (59)
- # cljs-dev (292)
- # cljsrn (2)
- # clojure (121)
- # clojure-brasil (19)
- # clojure-canada (2)
- # clojure-france (2)
- # clojure-italy (57)
- # clojure-spec (54)
- # clojure-uk (20)
- # clojurescript (83)
- # core-async (20)
- # cursive (5)
- # datascript (2)
- # datomic (10)
- # duct (25)
- # editors (4)
- # emacs (2)
- # fulcro (5)
- # funcool (1)
- # graphql (2)
- # immutant (8)
- # java (1)
- # jobs (4)
- # jvm (1)
- # keechma (5)
- # luminus (10)
- # off-topic (113)
- # om (36)
- # onyx (11)
- # parinfer (55)
- # pedestal (7)
- # protorepl (28)
- # re-frame (25)
- # reagent (6)
- # ring-swagger (1)
- # shadow-cljs (113)
- # spacemacs (1)
- # specter (23)
- # unrepl (8)
- # yada (8)
hi, quick question, luminus projects are using struct as the default validation approach. Anyone have pros/cons on using it vs spec. I know ‘user friendly messages’ is at least one of the spec issues
@U380J7PAQ I was about to ask the same question. did you find anything about it?
@kaosko should i file a bug report for this? basically, when i create a brand new project using lein new luminus demo +re-frame
, then add resources/externs.js
, the uberjar build fails to produce a functional app.js
. and this is the recommended way of doing it in the [luminus docs](http://www.luminusweb.net/docs/clojurescript.html).
@kaosko i forgot to mention that the build is bad whether or not i add resources/externs.js
to the :externs section of the uberjar config
@kaosko i just noticed now in the build output that lein actually complains if you name the file externs.js. the error message is:
WARNING: 1 error(s), 0 warning(s)
ERROR: JSC_DUPLICATE_EXTERN_INPUT. Duplicate extern input: /Users/fhsu/reference/buggy/resources/externs.js at (unknown source) line (unknown line) : (unknown column)
@feihong.hsu perhaps resources/externs.js is the output for source externs. mine is at :externs ["resources/public/js/externs.js" "react/externs/react.js"] and works fine
Yeah I the compiler doesn't handle having multiple externs with the same name gracefully, and looks like there's a dependency that has externs.js