This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-04
Channels
- # announcements (2)
- # babashka (7)
- # beginners (168)
- # boot (8)
- # cider (10)
- # clara (1)
- # clj-kondo (19)
- # cljdoc (8)
- # cljs-dev (16)
- # clojars (1)
- # clojure (208)
- # clojure-europe (10)
- # clojure-germany (1)
- # clojure-losangeles (1)
- # clojure-uk (56)
- # clojurescript (63)
- # conjure (23)
- # core-typed (2)
- # cursive (5)
- # data-science (1)
- # datomic (35)
- # emacs (1)
- # exercism (58)
- # graalvm (2)
- # graphql (1)
- # jobs (3)
- # kaocha (1)
- # lambdaisland (2)
- # malli (19)
- # meander (5)
- # off-topic (2)
- # pathom (25)
- # pedestal (3)
- # reagent (53)
- # reitit (4)
- # remote-jobs (2)
- # shadow-cljs (26)
- # spacemacs (3)
- # sql (22)
- # tools-deps (17)
Did you guys manage to enable pretty print with cider and shadow-CLJS?
What does this error mean? There are 29 of these in total.
------ WARNING #1 - -----------------------------------------------------------
Resource:
Failed to resolve sourcemap at out/cljs/pprint.js.map: out/cljs/pprint.js.map
--------------------------------------------------------------------------------
I was earlier using shadow-cljs.edn
for dependencies and it was throwing the same set of warnings but still worked. Now I moved dependencies to deps.end
and it stopped working entirely.
;; deps.edn
{:paths ["src"]
:deps {cljs-http {:mvn/version "0.1.46"}
reagent {:mvn/version "0.10.0"}
re-frame {:mvn/version "0.12.0"}
re-frame-utils {:mvn/version "0.1.0"}
thheller/shadow-cljs {:mvn/version "2.8.94"}}}
;; shadow-cljs.edn
{:builds {:app {:asset-path "/js"
:modules {:app {:init-fn com.github.hindol.twenty-nine/init}}
:output-dir "public/js"
:target :browser
:http-root "public"
:release {:output-dir "../docs/js"}}}
:deps true
:dev-http {3000 "public"}}
All the warnings started after I added re-frame-utils
to the mix. I kind of need the FX and COFX stuff from the library. I am willing to copy those functions over if there is no easy fix.Did you require the cljs.pprint namespce anywhere in your code?
Yes, I have [clojure.pprint :as pp]
in a couple of places.
There are a bunch of other errors (total 29 of them, all same type of warning),
------ WARNING #21 - ----------------------------------------------------------
Resource:
Failed to resolve sourcemap at out/reagent/debug.js.map: out/reagent/debug.js.map
--------------------------------------------------------------------------------
------ WARNING #22 - ----------------------------------------------------------
Resource:
Failed to resolve sourcemap at out/reagent/dom.js.map: out/reagent/dom.js.map
--------------------------------------------------------------------------------
Here is the one I pulled: https://github.com/den1k/re-frame-utils
0 Thu Oct 05 10:21:04 CEST 2017 out/reagent/
10627 Wed Jul 26 16:37:12 CEST 2017 out/reagent/core.cljs
33164 Wed Jul 26 16:37:12 CEST 2017 out/reagent/core.cljs.cache.edn
30952 Wed Jul 26 16:37:12 CEST 2017 out/reagent/core.js
12618 Thu Oct 05 10:21:04 CEST 2017 out/reagent/core.js.map
614 Wed Jul 26 16:37:12 CEST 2017 out/reagent/debug.cljs
2007 Wed Jul 26 16:37:12 CEST 2017 out/reagent/debug.cljs.cache.edn
2864 Wed Jul 26 16:37:12 CEST 2017 out/reagent/debug.js
1150 Thu Oct 05 10:21:02 CEST 2017 out/reagent/debug.js.map
2702 Wed Jul 26 16:37:12 CEST 2017 out/reagent/dom.cljs
7765 Wed Jul 26 16:37:12 CEST 2017 out/reagent/dom.cljs.cache.edn
6720 Wed Jul 26 16:37:12 CEST 2017 out/reagent/dom.js
3362 Thu Oct 05 10:21:04 CEST 2017 out/reagent/dom.js.map
That will be a change in the project.clj
? I don't see how that is being included in the jar.
I would copy the two files
Directly into my code base
There are two namespaces and only rely on re-frame and reagent [also the test maybe].
I wanted to fix it because re-frame FAQ links to it. Others may experience the same issue. https://github.com/day8/re-frame/blob/master/docs/FAQs/UseASubscriptionInAnEventHandler.md#solutions
the files are there because the development output files weren't deleted before publishing, so they get published with it.
Oh, it's already there. https://github.com/den1k/re-frame-utils/issues/5