This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-17
Channels
- # aleph (4)
- # announcements (2)
- # babashka (85)
- # beginners (136)
- # calva (72)
- # clj-commons (32)
- # clj-kondo (7)
- # cljs-dev (3)
- # clojure (117)
- # clojure-europe (38)
- # clojure-nl (3)
- # clojure-norway (1)
- # clojure-uk (4)
- # clojurescript (19)
- # conjure (38)
- # core-logic (2)
- # cursive (10)
- # datalevin (1)
- # datalog (1)
- # datomic (6)
- # events (2)
- # fulcro (16)
- # google-cloud (5)
- # graphql (10)
- # gratitude (3)
- # hugsql (3)
- # luminus (5)
- # membrane-term (12)
- # missionary (2)
- # nextjournal (5)
- # off-topic (3)
- # pedestal (2)
- # polylith (7)
- # portal (3)
- # re-frame (6)
- # reagent (26)
- # reclojure (8)
- # releases (3)
- # reveal (5)
- # shadow-cljs (14)
- # spacemacs (20)
- # sql (3)
- # tools-build (3)
- # web-security (9)
WHat's the right synax for requiring goog.object? is it
(:require ["goog.object" :as goog.object]) ?
edit: it appears to be simply
(:require [goog.object])
technically (:require [goog.object :as gobj])
as you should always be using aliases IMHO 😛
Might this error be related to the goog changes?:
TypeError: Cannot read properties of undefined (reading 'Level')
at eval (logging.cljc:12)
at eval (<anonymous>)
at Object.goog.globalEval (pnx-web.js:488)
at Object.env.evalLoad (pnx-web.js:1563)
We’re still seeing TypeError: (0 , _app._registerComponent) is not a function
errors when trying to use Firebase SDK v9 with shadow-cljs 2.16.3
. I think the new cljs compiler was meant to fix some of these issues but we haven’t been able to get things working.
@martinklepsch this is pretty much guaranteed to be a closure compiler issue. without a repro I can't tell. the new cljs release didn't do anything affecting this. the only thing it did was also upgrading the closure compiler version which sometimes fixes things and indeed seems to have fixed some (0, thing)
related issues others had. this is not happening in code generated by CLJS, so it'll be guaranteed to be something badly rewritten by :simple
in some npm code
Ok, we’ll try to create a repro case then 🙂
Hi, I am trying to resolve one issue which I am currently facing. I am following below steps
1. Created a project using lein new reframe appname +10x
. Then I installed mui5(CSS framework) https://mui.com/getting-started/installation/
2. Then I just modified views.cljs like below
(ns demo.views
(:require
["@mui/material/styles" :refer [ThemeProvider, StyledEngineProvider]]
["@sphere/component-library" :refer [themeV2]]
["@sphere/component-library/build/components/v3/Dummy/Dummy" :default Dummy]
["@mui/material/Button" :default Button]
["@mui/material/CssBaseline" :default CssBaseline]))
(defn test-component []
[:<>
[:> Button {:variant "contained"} "MUI Button"]
[:> Dummy]])
(defn main-panel []
[:> StyledEngineProvider {:injectFirst true}
[:> ThemeProvider {:theme themeV2}
[:> CssBaseline]
[test-component]]])
Note: Here ["@sphere/component-library/build/components/v3/Dummy/Dummy" :default Dummy]
is a UI library written in JS react and https://mui.com/getting-started/installation/ only used there
I am getting below error in screenshots:If I do the same in create-react-app
it works fine without any problem. Here is the code in screenshot:
Yeah, thanks I will ask in reagent channel.
Is it possible to use :ns-regexp
with :target :esm
?