This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-01-02
Channels
- # announcements (7)
- # atom-editor (3)
- # babashka (8)
- # beginners (38)
- # biff (5)
- # calva (17)
- # cider (26)
- # clj-kondo (6)
- # clojure (49)
- # clojure-europe (47)
- # clojure-norway (19)
- # clojure-sweden (2)
- # clojure-uk (1)
- # clojurescript (22)
- # cursive (20)
- # datahike (1)
- # datomic (6)
- # etaoin (2)
- # honeysql (2)
- # hyperfiddle (36)
- # jobs-discuss (19)
- # leiningen (15)
- # malli (5)
- # off-topic (8)
- # overtone (1)
- # pathom (15)
- # pedestal (8)
- # polylith (4)
- # releases (1)
- # ring (5)
- # schema (10)
- # shadow-cljs (17)
- # timbre (3)
- # xtdb (17)
Hi, we're trying to migrate from fighweel-sidecar to shadow-cljs, I have deps.edn
file where at some point a dependency is declared like this:
vincit/venia {:git/url ""
:sha "d8f38bd70eb348179d4adf03aeea068d948c664e"}
I was wondering if there's an equivalent for the format [library-name "version-string"]
or anyway what would be the best solution for this case?all you do is add the thheller/shadow-cljs dependency, same as you had with figwheel
and add :deps true
to shadow-cljs.edn https://shadow-cljs.github.io/docs/UsersGuide.html#deps-edn
first of all thanks for replying so quickly; yes I'm already trying to do so, but I get errors because in this project they used to import js libraries with the packages from cljsjs-react etc.
So I'm went back to the declaration of deps in shadow-cljs.edn
but I got stucked with that thing 😅
that doesn't change. cljsjs is not supported. doesn't matter whether you use deps.edn or not
gotta go, be back in about two hours. happy to walk you through it if you have questions later
Thank you so much, I really appreciate it 🙏
this is the error I get anyway
errors in file: /home/urbest/shadow/node_modules/chart.js/dist/chart.cjs
{:js-str-offsets [], :js-esm false, :js-imports [], :js-invalid-requires [], :goog-provides [], :js-language "es5", :goog-module nil, :js-warnings [], :resource-name "node_modules/chart_DOT_js/dist/chart.cjs", :js-requires [], :js-errors [{:line 569, :column 17, :message "'(' expected"}], :goog-requires [], :tag :shadow.build.npm/errors, :uses-global-buffer false, :uses-global-process false}
ExceptionInfo: errors in file: /home/urbest/shadow/node_modules/chart.js/dist/chart.cjs
shadow.build.npm/get-file-info* (npm.clj:535)
in this case I have installed chartjs
with npm and it's declared in the package.json too
there are some packages that use features that the closure compiler (and therefore shadow-cljs) does not support
ok, thank you very much for helping with this one, I'll find a workaround