This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-12-19
Channels
- # adventofcode (18)
- # announcements (1)
- # babashka (153)
- # beginners (73)
- # bristol-clojurians (4)
- # calva (1)
- # cider (6)
- # clj-kondo (38)
- # clojure (154)
- # clojure-dev (12)
- # clojure-europe (7)
- # clojure-finland (11)
- # clojure-nl (70)
- # clojure-spec (13)
- # clojure-uk (101)
- # clojuredesign-podcast (2)
- # clojurescript (15)
- # core-async (30)
- # cryogen (1)
- # cursive (5)
- # devops (1)
- # duct (4)
- # figwheel-main (1)
- # fulcro (19)
- # jobs (12)
- # kaocha (17)
- # luminus (2)
- # malli (8)
- # music (5)
- # nrepl (13)
- # off-topic (20)
- # overtone (3)
- # re-frame (7)
- # reagent (38)
- # shadow-cljs (13)
- # specter (3)
- # tools-deps (6)
- # vim (7)
Can I see where a particular is required? Ideally the whole graph from the entry to the namespace? I have cljs/analyzer.cljc
(which I could figure out thanks to npx shadow-cljs run shadow.cljs.build-report app
) in my bundle and I'd like to know why.
@arne-clojurians Programatically or once? That kind of info is available on the build's info page (localhost:9630) Scroll down and there'll be a drop-down. Pick your target ns and you'll be presented something like this:
Namespace: cljs.core.async via: cljs/core/async.cljs
Entries that led to the inclusion of this namespace
shadow.cljs.devtools.client.browser -> shadow.cljs.devtools.client.hud -> cljs.core.async
shadow.test.browser -> shadow.dom -> cljs.core.async
I would like to start using Material-UI in my project. I started with some experimentation as follows:
(ns orgpad.client.views.widgets.md-button
(:require ["@material-ui/core/Button" :as button]))
(defn md-button []
[:> button/Button {:color :primary :variant :contained} "button"])
When calling md-button, the following error occurs:
react.development.js:168 Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined.
How does the requiring work? Why does this occur?read https://shadow-cljs.github.io/docs/UsersGuide.html#_using_npm_packages especially the part about default exports
some output like
(not (= [{:foo/id {1 {:foo/id 1}}} {:bar/id {1 {:bar/id 1, :bar/foo [:foo/id 1]}}}] [{:bar/id {1 {:bar/id 1, :bar/foo [:foo/id 1]}}} {:foo/id {1 {:foo/id 1}}}]))
is really hard to read in the browser.I see shadow can generate a POM file to be used in Cursive IDE. Can someone point me in the right direction on how to import that such that depdencies are resolved by Cursive, and I can stop copy n pasting the deps into deps.edn to get Cursive symbol resolution and auto-complete to function?
@risinglight you click "create new project from existing sources" and select the pom.xml
file