This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-06
Channels
- # aleph (1)
- # announcements (2)
- # beginners (109)
- # calva (48)
- # cider (25)
- # clj-kondo (38)
- # cljdoc (13)
- # clojure (203)
- # clojure-europe (23)
- # clojure-gamedev (3)
- # clojure-nl (3)
- # clojure-uk (7)
- # conjure (2)
- # data-science (1)
- # datalog (2)
- # datomic (7)
- # deps-new (16)
- # depstar (2)
- # docker (2)
- # fulcro (67)
- # graalvm (58)
- # honeysql (16)
- # java (2)
- # jobs (2)
- # jobs-discuss (2)
- # kaocha (4)
- # lsp (82)
- # malli (23)
- # off-topic (35)
- # polylith (18)
- # practicalli (5)
- # releases (1)
- # remote-jobs (1)
- # shadow-cljs (15)
- # sql (17)
- # timbre (1)
- # tools-deps (24)
- # vim (20)
- # xtdb (9)
I am trying to consume a library that is using the experimental classProperties
static ERROR = ERROR
Is there a way to configure Shadow to work with that?Just importing it in a build that targets the browser
(ns app.client.hyper
(:require ["hyperspace" :refer [Client Server]]))
and this is the error
Failed to inspect file
/media/arnazeh/two/code/synonym/haystack/demo_cljs/node_modules/arpeecee/index.js
it was required from
/media/arnazeh/two/code/synonym/haystack/demo_cljs/node_modules/hrpc-runtime/rpc.js
Errors encountered while trying to parse file
/media/arnazeh/two/code/synonym/haystack/demo_cljs/node_modules/arpeecee/index.js
{:line 60, :column 15, :message "'(' expected"}
But I know from trying the same thing with a create-react-app
project that the problem is the experimental classProperties
, it suggested using a https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-class-properties and pointed out this https://github.com/mafintosh/arpeecee/blob/master/index.js#L60 as the reason of the error.well you can always use webpack as described here in option 2 https://code.thheller.com/blog/shadow-cljs/2020/05/08/how-about-webpack-now.html
🙏 3
I just upgrade to the latest version of shadow-cljs and my build report now has some of the dependencies in red. I think this means that the red dependencies are duplicated across modules. Is that correct? Example picture is attached
It did also show up for duplicate npm packages. Would you like me to file an issue on github about it?