This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-10-31
Channels
- # aws-lambda (4)
- # beginners (152)
- # boot (19)
- # cider (45)
- # cljs-dev (14)
- # clojure (54)
- # clojure-dev (33)
- # clojure-greece (11)
- # clojure-italy (4)
- # clojure-nl (8)
- # clojure-norway (2)
- # clojure-russia (6)
- # clojure-sg (1)
- # clojure-spec (1)
- # clojure-uk (40)
- # clojure-ukraine (5)
- # clojurescript (40)
- # community-development (13)
- # component (8)
- # core-async (3)
- # cursive (25)
- # data-science (11)
- # datomic (13)
- # duct (1)
- # emacs (2)
- # events (16)
- # figwheel (3)
- # fulcro (53)
- # graphql (2)
- # jobs (5)
- # jobs-rus (1)
- # juxt (10)
- # leiningen (4)
- # off-topic (82)
- # other-languages (5)
- # portkey (3)
- # protorepl (13)
- # re-frame (22)
- # reagent (15)
- # ring-swagger (4)
- # shadow-cljs (69)
- # spacemacs (7)
- # specter (16)
- # sql (13)
- # vim (5)
- # yada (2)
Hi, I've got this warning in shadow-cljs release app
:
-> Compile CLJS: devtools/hints.cljs
WARNING: You required cljs-devtools library in a project which is currently compiled with :optimizations :advanced.
You should remove this library from non-dev builds completely because it impedes dead code elimination.
The best way is to use :preloads compiler option: .
To silence this warning please set :silence-optimizations-warning config key to true.
More details: .
What should I add to the shadow-cljs.edn
?Thanks. If I already have :devtools {:preloads [re-frisk.preload] :autoload true}
in shadow-cljs.edn
, should I change it to :devtools {:preloads [[re-frisk.preload] [devtools.preload]] :autoload true}
?
Another question. I am doing shadow-cljs watch app
and then shadow-cljs cljs-repl app
but I got this in cljs-repl:
[1:1]~cljs.user=> (+ 1 1)
There is no connected JS runtime.
2.0.50 introduced this error when building maria:
[:live] Configuring build.
[:live] Build failure:
target-fn shadow.build.targets.browser/process not found
{:target :browser}
ExceptionInfo: target-fn shadow.build.targets.browser/process not found
clojure.core/ex-info (core.clj:4744)
clojure.core/ex-info (core.clj:4744)
shadow.build/get-target-fn (build.clj:180)
shadow.build/get-target-fn (build.clj:153)
shadow.build/configure (build.clj:198)
shadow.build/configure (build.clj:185)
shadow.cljs.devtools.server.worker.impl/build-configure (impl.clj:121)
shadow.cljs.devtools.server.worker.impl/build-configure (impl.clj:90)
shadow.cljs.devtools.server.worker.impl/fn--22666 (impl.clj:208)
shadow.cljs.devtools.server.worker.impl/fn--22666 (impl.clj:200)
clojure.lang.MultiFn.invoke (MultiFn.java:233)
shadow.cljs.devtools.server.util/server-thread/fn--22550/fn--22551/fn--22555 (util.clj:162)
shadow.cljs.devtools.server.util/server-thread/fn--22550/fn--22551 (util.clj:161)
shadow.cljs.devtools.server.util/server-thread/fn--22550 (util.clj:146)
clojure.core.async/thread-call/fn--7892 (async.clj:442)
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:617)
java.lang.Thread.run (Thread.java:745)
@mhuebert [email protected]
should fix the JS issue you ran into yesterday. https://github.com/thheller/shadow-cljs/issues/124
i had fixed it, but recently my patch was merged into re-frame-trace
and one aspect of it may have not been applied/merged correctly
not important but WARNING: You required cljs-devtools library in a project which is currently compiled with :optimizations :whitespace.
you could also set :release {:compiler-options {:optimizations :whitespace}}
which would only set that option for release
:source-paths ["src"
;; for development, checkout re-frame-trace and re-view into sibling directory,
;; or remove these entries:
"../re-frame-trace/src"
"../re-view/re-frame-simple/src"]
it does not happen if I compile the :live
build by itself, only when multiple builds at the same time
and it is order dependent, npx shadow-cljs watch trusted live
fails, npx shadow-cljs watch live trusted
works
downside to loading bootstrap stuff via inline <script>
tags is that errors show up as coming from <anonymous> locations:
TypeError: Cannot read property 'cljs$core$IFn$_invoke$arity$1' of undefined
at Function.cljs.spec.test.alpha$macros.instrument.cljs$core$IFn$_invoke$arity$4 (<anonymous>:248:95)
at Function.cljs.core.apply_to_simple.cljs$core$IFn$_invoke$arity$6 (/js/compiled/cljs-runtime/cljs.core.js:13067:10)
@mhuebert you keep finding the good bugs. npx shadow-cljs watch trusted live
should now work in [email protected]