This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-09-19
Channels
- # 100-days-of-code (12)
- # beginners (116)
- # calva (2)
- # cider (16)
- # cljdoc (5)
- # cljs-dev (26)
- # clojure (161)
- # clojure-italy (7)
- # clojure-nl (9)
- # clojure-spec (49)
- # clojure-uk (112)
- # clojurescript (50)
- # clojutre (4)
- # core-async (2)
- # cursive (4)
- # datomic (192)
- # emacs (10)
- # events (4)
- # figwheel-main (147)
- # fulcro (94)
- # graphql (5)
- # instaparse (1)
- # jobs-rus (1)
- # keechma (10)
- # leiningen (223)
- # luminus (3)
- # mount (23)
- # nrepl (8)
- # off-topic (44)
- # onyx (10)
- # pedestal (5)
- # re-frame (19)
- # reitit (8)
- # shadow-cljs (62)
- # uncomplicate (3)
should builds not fail when a warning/error comes up like this?
npm package "slate-react" expected version "react-portal@^3.1.0" but "4.1.5" is installed.
npm package "slate" expected version "direction@^0.1.5" but "1.0.2" is installed.
or, is it possible to fail builds when this happens?
since if you install the new version the other packages that were expecting the older versions will complain
cause we hit a compilation bug with this and so i’m a bit weary of it going unnoticed
is it possible this can happen “randomly”, when deps have not been touched?
I will be adding additional functions for the UI for this so that you can run something like deps-check
so see potential version conflicts and fail if there are
has anyone ever seen a problem for Symbol is undefined
in IE11?
ah i see
not supported
would need a polyfill
do you know of any good polyfills/practices for this?
depends on what you are doing and where you are doing it? are you using Symbol
or is it a npm lib?
npm lib
all the online answers point to babel which i cannot/don’t want to use
{:app {:target :browser
:output-dir "resources/cognician/manage/js/"
:asset-path "/cognician/manage/js/"
:devtools {:loader-mode :eval
:ignore-warnings true}
:modules {:app {:entries [cognician.manage.app]}}
;; build env specific settings
:dev {:compiler-options {:ignore-warnings true}
:closure-defines {cognician.manage.DEBUG true
goog.DEBUG true}}
;; production
:release {:compiler-options {:infer-externs :auto
:source-maps true}}}}
getting a link now
and with it, slate-react (react counterpart lib)
i’ve yet to try dev, i’ll try that now
no worries man, thank you for the bit of help
i’ll try that out, thank you
I'm not quite sure what I am doing wrong. But when I use deps.edn
shadow-cljs can't find the namespace I use for clj-run
.
It runs fine when I am declaring dependencies the normal way in the shadow-cljs.edn file.
Well I assume it is on the classpath. I'm still kind of in the dark on a lot of the JVM stuff. lol
:source-paths
are here. https://github.com/groundedSAGE/shadow-jam/blob/master/shadow-cljs.edn#L3
That fixed it. Cheers!
@biscuitpants i just did a polyfill straight at the top of my index.html. ie11 doesn’t support Array.find natively, which was about the only older version incompat I found with cljs.
but the rewrite polyfills option didn’t seem to work for that particular case, hence the direct inclusion
ah okay, that’s a good idea. i’ll try that
i remember boot-clj has a :checkouts
option which was useful for pointing to a local jar instead of a published mvn artifact. to do the equivalent in shadow do I just add the dir to the :source-paths
config? i feel like I read somewhere that shadow-cljs cannot modify the classpath above/outside its root, but not sure if that’s right
@lwhorton completely fine to add :source-paths
to wherever. the rule for non-project files is only for node_modules
:thinking_face: I just upgraded from 2.4.24 to 2.6.8 and I'm getting a bunch of inference warnings. I think I ran into this before...
remembering now 😅 I have a pinned clojurescript + closure-compiler that I needed to remove to upgrade
Is there anything like Prettier for cljs/reagent?