This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-08-16
Channels
- # announcements (3)
- # beginners (104)
- # boot (18)
- # calva (1)
- # cider (43)
- # cljs-dev (45)
- # cljsrn (2)
- # clojure (29)
- # clojure-dev (10)
- # clojure-europe (2)
- # clojure-italy (117)
- # clojure-nl (17)
- # clojure-spec (56)
- # clojure-uk (41)
- # clojuredesign-podcast (12)
- # clojurescript (35)
- # community-development (6)
- # cursive (27)
- # datomic (12)
- # emacs (9)
- # fulcro (6)
- # graalvm (52)
- # instaparse (6)
- # klipse (3)
- # leiningen (11)
- # lumo (1)
- # off-topic (16)
- # pathom (31)
- # re-frame (10)
- # reagent (26)
- # reitit (3)
- # shadow-cljs (67)
- # sql (4)
- # tools-deps (1)
I run this issues example : https://github.com/kurtharriger/shadow-cljs-examples/tree/dirac
do you have something like his user.clj
working? he is explicitely starting dirac agent inside his nrepl server here: https://github.com/kurtharriger/shadow-cljs-examples/blob/dirac/dev/user.clj#L6
that is the thing which should start listening server for dirac extension in the browser
I’m sorry I cannot provide better guidance than what is described in the docs here: https://github.com/binaryage/dirac/blob/master/docs/installation.md#start-dirac-agent
@U1RJA2RT9 last time I checked dirac was not supported. can't remember the exact details but I doubt that has changed.
@trevor670 have you seen this? https://clojureverse.org/t/upgrading-the-react-native-support/4669
@trevor670 the documentation for :react-native
is still incomplete but here is an example with expo https://github.com/thheller/reagent-expo and without https://github.com/thheller/reagent-react-native
At the moment, most errors I get during development with shadow-cljs are very unspecific and it gives me a very hard time to track down the issues:
Is it possible that I set some wrong configuration - or missed something in the configuration? I was looking at source-map settings but I saw they should be enabled by default in dev mode
I see, this is probably what is happening - what is missing for my eyes is a reference to where this happens in my codebase
I thought it might be possible when I eval it through my editor integration (Not directly in the REPL)
@alpox you might also want to upgrade shadow-cljs. in the recent released I tweaked some REPL stuff and previously some compiler warnings were lost
so there might be some more helpful errors in case you are stuck on an "older" version (ie. last week) 2.8.48
shows warnings more reliably
Oh wow. I've been programming JS / Web stuff for a long time but didn't ever find out about "Pause on exceptions". Shame on me. Thanks @thheller! That makes my life quite a bit easier 😄
In JS, webpack-dev-server
allows me to manually type URLs that utilize dynamic routes into the address bar (during development). Is there a way to configure shadow-cljs to the the same? If I try to type anything other than the root page I get an error.
@stefan.age what error? the default is to support push state style urls?
This site can't be reached The webpage at might be temporarily down or it may have moved permanently to a new web address.
ERR_INVALID_RESPONSE
% curl -v -H "Accept: text/html" ✹
* Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 3000 (#0)
> GET /graphiql HTTP/1.1
> Host: localhost:3000
> User-Agent: curl/7.54.0
> Accept: text/html
>
< HTTP/1.1 404 Not Found
< Connection: Keep-Alive
< Cache-Control: private, no-cache
< Server: Aleph/0.4.4
< Content-Type: application/octet-stream
< content-length: 0
< Date: Fri, 16 Aug 2019 19:25:44 GMT
<
* Connection #0 to host localhost left intact
webpack-dev-server supports a bit more detailed config where it you tell it to only proxy certain paths and so on
gotcha, I think that’s what I was looking for. Will just see if I can tweak the server a bit. thank you!
Hi :spock-hand: I was told that I could get some help with integrating reagent with existing ReactJS code base here.