This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-27
Channels
- # announcements (11)
- # aws (1)
- # babashka (15)
- # beginners (345)
- # calva (5)
- # chlorine-clover (14)
- # clj-kondo (40)
- # cljfx (30)
- # clojure (174)
- # clojure-australia (6)
- # clojure-europe (64)
- # clojure-france (1)
- # clojure-nl (12)
- # clojure-uk (20)
- # clojurescript (29)
- # conjure (1)
- # core-async (53)
- # cryogen (3)
- # cursive (8)
- # datomic (12)
- # emacs (5)
- # events (4)
- # fulcro (27)
- # graalvm (1)
- # graphql (9)
- # helix (8)
- # keechma (11)
- # london-clojurians (1)
- # malli (12)
- # off-topic (12)
- # pathom (8)
- # portal (1)
- # re-frame (19)
- # reagent (13)
- # reitit (16)
- # ring-swagger (2)
- # sci (38)
- # shadow-cljs (31)
- # spacemacs (3)
- # specter (14)
- # sql (14)
- # tools-deps (31)
- # vim (4)
- # xtdb (9)
Hi, I just started my first Shadow project... yeah... and straight after adding my first NPM module I am getting this error: Illegal variable reference before declaration: a
any idea what I can do to get rid of this?
Hey everyone! Perhaps a dumb question but what is the preferred route to running a full stack (clj + cljs) clojure project? I currently have three directories: client
, backend
, common
which refer to cljs
, clj
and ‘cljc’ respectively. My client uses shadow-cljs and after doing some reading I noticed that there are two ways to run shadow.
1. Via npm
2. Via lein
I’m confused on what is preferred here. I assume with running the client project via npm I would still get access to the repl right?
I also noticed that in lein generated projects the top level directory has a project.clj
file and both the client and backend run off of lein. Ive noticed the same thing with luminus too and I am confused what is the preferred route.
It seems like running shadow via npm and the backend clj project via lein would be right but what i mentioned above makes me hesitant that it is the "right way"
I also have only one src/main
that houses all .clj/s/c
files but namespaced accordingly
word thanks a ton @thheller! my structure is
src/project_name/{client,backend,common}
ok cool im going to go your route since i like it as well. just need to make Calva play nice with it!Closure compilation failed with 1 errors
--- node_modules/ibmcloud-appid-js/dist/appid.umd.min.js:44
Illegal variable reference before declaration: a