This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-11-06
Channels
- # announcements (5)
- # asami (4)
- # babashka (27)
- # beginners (1)
- # calva (4)
- # cider (64)
- # clj-kondo (7)
- # clojure (7)
- # clojure-brasil (3)
- # clojure-europe (41)
- # clojure-france (2)
- # clojure-norway (101)
- # clojure-uk (5)
- # clojurescript (19)
- # cursive (3)
- # datahike (15)
- # datomic (15)
- # events (2)
- # honeysql (11)
- # hyperfiddle (27)
- # introduce-yourself (2)
- # jobs-rus (1)
- # leiningen (8)
- # london-clojurians (1)
- # lsp (175)
- # off-topic (52)
- # overtone (10)
- # portal (15)
- # re-frame (7)
- # reagent (1)
- # releases (1)
- # remote-jobs (2)
- # shadow-cljs (15)
- # sql (5)
Hi guys! I don’t know if it’s normal or not but this don’t include the css
(ns foo.core
"some doctring?"
{:shadow.css/include ["..."]})
but this works:
(ns foo.core
{:shadow.css/include ["..."]})
the parsing that collects these includes is very basic, could be that the string confuses it
Thanks @U05224H0W
Hello I'm facing an error that I don't know how to resolve. Sudenly, the
project is failing to use react-select.
I'm receiving this error
js.js:90 TypeError: global is not a function
at shadow$provide.module$node_modules$react_select$dist$index_d1cb43f3_cjs_dev (index-d1cb43f3.cjs.dev.js:930:82)
at shadow.js.jsRequire (js.js:81:18)
at shadow$provide.module$node_modules$react_select$dist$Select_d63eed7b_cjs_dev (Select-d63eed7b.cjs.dev.js:12:13)
at shadow.js.jsRequire (js.js:81:18)
at shadow$provide.module$node_modules$react_select$dist$react_select_cjs_dev (react-select.cjs.dev.js:9:14)
at shadow.js.jsRequire (js.js:81:18)
at shadow$provide.module$node_modules$react_select$dist$react_select_cjs (react-select.cjs.js:7:20)
at shadow.js.jsRequire (js.js:81:18)
at shadow.js.require (js.js:137:20)
at eval (admin.dashboard.core.js:2:70)
Admin core contains this:
(ns admin.dashboard.core
(:require [admin.layout.core :as alayout]
["react-select" :default Select]
[o2w.routes :as routes]
[ui.core :as ui]
[re-svg-icons.feather-icons :as feather]))
(defn btn [{:keys [route icon title]}]
[:div.col-sm-4
[:a.btn.btn-outline-primary.text-center.p-3.d-block.mb-3 {:href (routes/url route)}
[icon {:height "128px" :width "128px"}]
[:p.pt-5 title]]])
(defn page []
[alayout/admin {:title "Dashboard"}
[ui/card {:title "Dashboard"}
[:div.row
[:> Select {:value 1
:options [{:id "1" :name "hola"}]}]
[btn {:title "Configurar tienda" :icon feather/tool :route :admin/config}]
[btn {:title "Contenidos" :icon feather/list :route :admin/paginas}]
[btn {:title "Cabeceras" :icon feather/film :route :admin/cabeceras}]
[btn {:title "Banners" :icon feather/image :route :admin/banners}]]]])
Any ideas?
I'm using shadow-cljs 2.25.10 and react select 5.8.0. I tried everything I know to make it works without any luck
I don't know why is not working now in the project. If anybody has any suggestion to try would be so much helpful. Thank you!
cleaning node_modules, yarn.lock and .shadow-cljs has solve the problem. Thank you again. And sorry for the interruption! Regards
don't throw away your lock file in cases like this, its the only thing that makes it reproducible 😛