Fork me on GitHub

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 😛


Fair point!


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 (pnx-web.js:488)
    at Object.env.evalLoad (pnx-web.js:1563)


likely, just not the goog.object one but an older one


can't remember what exactly but some class was renamed/moved goog.log.Level or so


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) 2. Then I just modified views.cljs like below

(ns demo.views
   ["@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]
Note: Here ["@sphere/component-library/build/components/v3/Dummy/Dummy" :default Dummy] is a UI library written in JS react and 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:


thats a #reagent question and has nothing to do with shadow-cljs


Yeah, thanks I will ask in reagent channel.

Joshua Smock22:11:19

Is it possible to use :ns-regexp with :target :esm?