This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-07
Channels
- # adventofcode (94)
- # babashka (29)
- # babashka-sci-dev (2)
- # beginners (103)
- # calva (15)
- # cider (17)
- # clj-kondo (62)
- # cljsrn (24)
- # clojars (13)
- # clojure (97)
- # clojure-belgium (3)
- # clojure-berlin (3)
- # clojure-czech (1)
- # clojure-europe (68)
- # clojure-nl (1)
- # clojure-norway (3)
- # clojure-seattle (3)
- # clojure-uk (1)
- # clojurescript (7)
- # community-development (29)
- # conjure (2)
- # cursive (14)
- # data-science (15)
- # emacs (3)
- # graphql (10)
- # gratitude (1)
- # holy-lambda (32)
- # hoplon (21)
- # hyperfiddle (2)
- # jobs (2)
- # joyride (36)
- # lsp (4)
- # meander (13)
- # off-topic (203)
- # pathom (3)
- # polylith (6)
- # re-frame (4)
- # reagent (1)
- # reitit (28)
- # releases (1)
- # shadow-cljs (16)
- # slack-help (2)
- # sql (27)
- # vim (2)
I'm seeing a regression between 2.20.10 and 2.20.11 in build report output and used npm files. With 2.20.11+ I'm only seeing the JS files that are directly required from Cljs code.
Might be just the Closure update? I'm not sure how directly the report uses Closure information?
Strange, I'm seeing the same extract-report-data build-sources data for a JS file that isn't visible on 2.20.11 report for both versions.
The difference is in build-modules source-bytes data
https://github.com/google/closure-compiler/commit/c14448355609eb52a933f2cd0c201533506c71bc#diff-0ff91976a315270f18cbe5e684cd54217218c4d8ea3182b7632d20a55d92b485 this is probably the biggest change in Closure between the releases
Great!
I get an error when i start my app i'm hoping someone can give me some insight into. The error doesn't seem to effect anything as far as i can tell though.
shadow.module.main.append.js:4 An error occurred when calling (centriq-web.main/init!)
eval @ shadow.module.main.append.js:4
goog.globalEval @ main.js:472
env.evalLoad @ main.js:1534
(anonymous) @ main.js:2253
and the ns in question looks like this:
(ns centriq-web.main
(:require [centriq-web.admin :refer [admin-component]]
[reagent.dom :as dom]))
(defn init! []
(dom/render [admin-component] (.getElementById js/document "app")))
And as you might imagine the shadow cljs uses that init! function to as the init-fn
:builds
{:app {:target :browser
:compiler-options {:externs ["datascript/externs.js"]}
:modules {:main {:init-fn centriq-web.main/init!}}}}
The if i follow the error to the shadow.module.main.append file i don't learn much. MY two theories are that
1. this error comes from my not properly configuring shadow. e.g i forgot to add some build configuration or maybe a hook or annoate the init! function with some meta data.
2. this error is a catch all and the real issue is surfaced else where in the console log.it was the later.