This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-03
Channels
- # aws (3)
- # babashka (46)
- # bangalore-clj (2)
- # beginners (89)
- # cider (1)
- # clojure (57)
- # clojurescript (4)
- # conjure (6)
- # duct (3)
- # fulcro (2)
- # graalvm-mobile (41)
- # introduce-yourself (1)
- # lsp (12)
- # malli (11)
- # off-topic (37)
- # pathom (3)
- # pedestal (6)
- # podcasts-discuss (5)
- # polylith (17)
- # releases (2)
- # sci (2)
- # shadow-cljs (8)
- # specter (1)
- # tools-deps (10)
i'm trying to upgrade (cljs 1.10.773 -> 866, shadow 2.11.24 -> 2.14.5) my re-frame / material-ui project to the latest shadow and cljs, but when i build the app, i see a ton of errors like the below. could it be a build or dependency issue? compilation has no issues and it works with the previous cljs/shadow versions. i've tried adding managed dependencies and different combinations of package versions, npm packages, etc. the npm deps are there but they don't seem to load and i'm not sure how to get it working
An error occurred when loading reagent_material_ui.styles.js
and warnings like
shadow-cljs - failed to load module$node_modules$$material_ui$core$node$ButtonBase$TouchRipple
shadow.js.jsRequire @ js.js:74
shadow$provide.module$node_modules$$material_ui$core$node$ButtonBase$ButtonBase @ ButtonBase.js:35
shadow.js.jsRequire @ js.js:66
@lucian303 try setting :js-options {:entry-keys ["browser" "main"]}
in your build config
unfortunately, i still get the same errors even w/ that setting in the config @thheller
If I have something like :lein {:profile "+dev"}
in my config, does that impact the release build? I’m guessing it does?
Or, can I have :lein
in the :dev
map of the build? I’ve tried it and there are no complaints, but I don’t know if it is picked up.
@pez shadow doesn't support classpath profiles. you can configure one for lein and that always applies
don't really need to do it for anything. you can just run through lein directly if you really want more profiles
Not sure I follow. I’m trying to get the Luminus template to allow me to start the server and the client such that Calva can connect both REPLs. If I have :lein {:profile "+dev"}
in the config, Leiningen starts like so:
shadow-cljs - running: lein with-profile +dev run -m shadow.cljs.devtools.cli --npm watch app
Which satisfies Calva’s needs, and works in development. But I am unsure how/if it impacts a release build of the client app.