This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-05
Channels
- # announcements (13)
- # aws (1)
- # bangalore-clj (4)
- # beginners (66)
- # boot (11)
- # calva (27)
- # cider (27)
- # clj-kondo (76)
- # cljdoc (6)
- # cljs-dev (38)
- # clojars (3)
- # clojure (143)
- # clojure-dev (2)
- # clojure-europe (6)
- # clojure-greece (10)
- # clojure-italy (10)
- # clojure-nl (5)
- # clojure-norway (2)
- # clojure-sweden (1)
- # clojure-uk (19)
- # clojurescript (49)
- # cursive (13)
- # datomic (14)
- # duct (6)
- # figwheel-main (3)
- # fulcro (31)
- # funcool (7)
- # jobs (3)
- # keechma (142)
- # liberator (1)
- # off-topic (15)
- # om (2)
- # reagent (1)
- # reitit (2)
- # remote-jobs (1)
- # rewrite-clj (73)
- # shadow-cljs (21)
- # spacemacs (18)
- # sql (5)
- # tools-deps (10)
- # yada (1)
Has anyone here tried to use react-router with shadow-cljs? I'm trying to use hx and react-router. If I try to navigate using the address bar to a route like // it fails saying it cannot find a LOT of scripts located at //js/cljs-runtime/.js (I think it tries to take the first part as the root "/"). If it's only / it works perfectly. (Tried with the same component). Both work perfectly if I navigate within the app using anchors.
I tried replacing react-router with reitit, accountant and clerk and I'm still having the same issue.
yeah you are likely including your JS via a relative path. make sure your :asset-path
starts with a /
and your <script
tag including the initial JS does as well
omg... that's it. Of course... thanks a lot! I wouldn't have figured that out myself. ❤️
How I can check which dependencies are included in build?
I've declared dependencies in : dependencies
vector in shadow-cljs.edn
.
The required namespace "
But it is showing error given above.
Would using deps.edn
instead of shadow-cljs.edn
solve this problem?
@ahmed1hsn no. which dependency did you add? and did you restart the shadow-cljs process after adding it?
[keechma/toolbox "0.1.6"]
Thanks it got solved, I was using old dependencies.
i'm building a cljs frontend (using shadow-cljs) and a clj backend (using deps.edn). I'm running the frontend with shadow-cljs watch
and the backend with a normal repl.
A disadvantage to running is that the dev server for the frontend is running on a different port than the backend. Is there a way to run the dev shadow cljs server in the same process and port than the backend server?
ah yes, that should work, but it will not offer the reload-on-edit that shadow-cljs offers right?