This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-23
Channels
- # aleph (14)
- # announcements (2)
- # babashka (8)
- # bangalore-clj (2)
- # beginners (66)
- # calva (8)
- # cider (1)
- # clj-kondo (24)
- # cljdoc (3)
- # cljs-dev (3)
- # cljsrn (2)
- # clojure (197)
- # clojure-europe (1)
- # clojure-india (5)
- # clojure-italy (4)
- # clojure-nl (27)
- # clojure-uk (18)
- # clojurescript (56)
- # code-reviews (19)
- # core-async (86)
- # cursive (16)
- # data-science (1)
- # datomic (16)
- # docker (3)
- # events (1)
- # fulcro (101)
- # graalvm (7)
- # graphql (16)
- # jobs (1)
- # jobs-discuss (6)
- # kaocha (4)
- # luminus (1)
- # off-topic (93)
- # onyx (3)
- # pathom (9)
- # planck (2)
- # re-frame (8)
- # reagent (3)
- # reitit (3)
- # remote-jobs (3)
- # shadow-cljs (21)
- # test-check (3)
- # tools-deps (21)
- # vim (16)
I have a project that uses Winston.js colors.js and moment-mini they all work fine with npm/yarn but under Shadow they all have: required JS dependency "async/series" is not available, it was required by "node_modules/winston/dist/winston/transports/file.js". and the recomendation to run:
npm install async/serie
When I try to run install it errors out and can’t find the repositories /usr/local/bin/git ls-remote -h -t
it just seems to me that since this is occurring in 3 apparently unrelated instances - except for all using async/series and that it is fine in npm and only shows up in shadow I was thinking it must be trying to do something shadow doesn’t support
Isn't Winston.js just trying to load the series script from the async package, so you should npm install async itself?
@tbrooke I don't know where you are getting that git command from. that is not how npm works. npm install winston
and (require '["winston" :as w])
works absolutely fine for me
the async/series
message is a bit wrong. it is the async
package which should have been installed when installing winston since it is once of its dependencies
I don’t get a warning when I turn on externs inference, but it seems to break in release
then you might be running into https://github.com/thheller/shadow-cljs/issues/632
the logic why externs inference backs off is that it assumes you are working on JS code that is safe to rename
I have some external JS that sets foo.bar_baz
and I need to get foo.bar_baz
in some CLJS code
that seems like a problem on its own given that it clashes with the CLJS namespace structure?