This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-03-28
Channels
- # announcements (3)
- # babashka (36)
- # beginners (77)
- # boot (3)
- # chlorine-clover (10)
- # cider (27)
- # clj-kondo (1)
- # cljs-dev (4)
- # clojure (256)
- # clojure-belgium (1)
- # clojure-europe (9)
- # clojure-uk (18)
- # clojuredesign-podcast (9)
- # clojurescript (54)
- # cryogen (8)
- # cursive (3)
- # data-science (1)
- # datomic (2)
- # duct (31)
- # events (1)
- # exercism (3)
- # fulcro (116)
- # joker (20)
- # kaocha (5)
- # meander (2)
- # nrepl (4)
- # off-topic (10)
- # other-languages (15)
- # re-frame (18)
- # reagent (4)
- # shadow-cljs (44)
- # sql (14)
- # tools-deps (17)
what’s recommended for RN + shadow-cljs development these days, expo or react-native’s CLI?
I’m noticing with the latest shadow-cljs version, that preloads and :dev/after-load
aren’t working
iirc shadow-cljs does not work out of the box with react-native, only with expo. I’d recommend starting with expo anyway, since it’s easier to setup and use
@lilactown sounds like you are maybe using lein/deps.edn and have a dependency version conflict?
I only have shadow-cljs and helix as dependencies. I am using deps.edn I was trying out just putting shadow-cljs in deps.edn; I haven’t installed it via npm. would that produce a similar effect?
This is my deps.edn:
{:paths ["src"]
:deps {thheller/shadow-cljs {:mvn/version "2.8.94"}
lilactown/helix {:local/root "../helix"}}}
how would I look for a dependency conflict in this case?I don’t know what happened, but I restarted shadow-cljs a couple times and it started working :man-shrugging:
which causes goog.define to not work which in turn causes the devtools to not load at all
Hey, I suddenly started getting errors:
The required JS dependency "core-js/library/fn/parse-int" is not available, it was required by "node_modules/@babel/runtime-corejs2/core-js/parse-int.js".
Search in:
/c/Users/Slawek/Work/foo/bar/node_modules
You probably need to run:
npm install core-js/library/fn/parse-int
See:
My dependencies are:
:dependencies [[reagent "0.8.1"]
[secretary "1.2.3"]
[venantius/accountant "0.2.4"]
[re-frame "0.10.5"]
[day8.re-frame/http-fx "0.1.6"]
[re-com "0.9.0"]
[com.andrewmcveigh/cljs-time "0.5.2"]
[re-frisk "0.5.3"] ;NOTE enable only for debugging
]
have you seen something like that?Hi, if I have a CLJS library (from Clojars) with its own package.json
file and I want to use that library in another project, do I have to declare the library's dependencies again in that project's package.json
or can I somehow tell shadow-cljs to look at the library's package.json
as well?
that library must include a deps.cljs
file with {:npm-deps {"a-dependency" "version"}}
I installed shadow-cljs as follows:
npm install -g shadow-cljs
Then I created a shadow-cljs.edn file, with the following:
{:source-paths
["src/cljs" "src/cljc" "dev"]
:dependencies
[]
:builds
{:app
{:target :browser
:output-dir "resources/public/js/compiled"
:asset-path "/js/compiled"
:modules {:myapp {:entries [myapp.system]}}}}}
Then in the already running clj repl, I do M-x cider-connect-sibling-cljs, and select the shadow repl option. But I get that shadow-cljs Clojurescript REPL is not available. How do I get shadow cljs to work?all shadow-cljs does is lein with-profiles +cljs run -m shadow.cljs.devtools.cli ...
so whatever you configure in project.clj
will apply but it has nothing to do with shadow-cljs
So basically shadow-cljs is not parsing project.clj but instead will get the dependencies for the profile from leiningen.
yeah, leiningen will be used to get dependencies and start the shadow-cljs application
thanks @thheller @lilactown
Trying to compile a release build targeting react native, but getting this error when compiling a release build (the regex seems to work fine in the emulator). Is there anyway of getting around this?