This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-07-25
Channels
- # announcements (1)
- # babashka (15)
- # biff (15)
- # calva (9)
- # cherry (18)
- # cider (43)
- # cljs-dev (1)
- # cljsrn (10)
- # clojure (14)
- # clojure-europe (47)
- # clojurescript (29)
- # clr (5)
- # conjure (1)
- # core-logic (17)
- # datomic (8)
- # emacs (22)
- # fulcro (3)
- # gratitude (1)
- # hoplon (23)
- # humor (1)
- # hyperfiddle (34)
- # jobs (1)
- # kaocha (1)
- # malli (3)
- # nrepl (4)
- # off-topic (18)
- # pathom (12)
- # pedestal (1)
- # polylith (1)
- # portal (17)
- # practicalli (1)
- # re-frame (19)
- # reitit (8)
- # releases (1)
- # rewrite-clj (4)
- # shadow-cljs (15)
- # sql (23)
- # tools-build (4)
I have shadow-cljs successfully compiling my build and webpack bundling a release. All the assets seem to be resolved correctly when I visit the app URL. No console errors, but the page is just a blank white screen. No network errors, nothing to indicate it isn’t behaving as expected. This might not even be related to shadow-cljs anymore in which case please let me know and I’ll take the question elsewhere (this is a non-development build)
I do get these warnings when webpack runs
[1m------ WARNING #1 - -----------------------------------------------------------[0m
File: /var/jenkins_home/workspace/loud_Projects_co.foo.my_PR-916@2/src/cljsjs/material_ui.cljs:8:6
--------------------------------------------------------------------------------
[2m 5 | ["material-ui/utils/withWidth" :refer [default] :rename {default withWidth}][0m
[2m 6 | ["material-ui/utils/colorManipulator" :refer [default] :rename {default colorManipulator}]))[0m
[2m 7 | [0m
[1m 8 | (set! js/MaterialUI MaterialUI)[0m
------------^-------------------------------------------------------------------
[33;1mconstant MaterialUI assigned a value more than once.
Original definition at externs.shadow.js:4[0m
--------------------------------------------------------------------------------
[2m 9 | (set! js/MaterialUIStyles MaterialUIStyles)[0m
[2m 10 | (set! js/MaterialUIUtils #js {:withWidth withWidth[0m
[2m 11 | :colorManipulator colorManipulator})[0m
[2m 12 | [0m
--------------------------------------------------------------------------------
[1m------ WARNING #2 - -----------------------------------------------------------[0m
File: /var/jenkins_home/workspace/loud_Projects_co.foo.my_PR-916@2/src/cljsjs/material_ui.cljs:9:6
--------------------------------------------------------------------------------
[2m 6 | ["material-ui/utils/colorManipulator" :refer [default] :rename {default colorManipulator}]))[0m
[2m 7 | [0m
[2m 8 | (set! js/MaterialUI MaterialUI)[0m
[1m 9 | (set! js/MaterialUIStyles MaterialUIStyles)[0m
------------^-------------------------------------------------------------------
[33;1mconstant MaterialUIStyles assigned a value more than once.
Original definition at externs.shadow.js:5[0m
--------------------------------------------------------------------------------
[2m 10 | (set! js/MaterialUIUtils #js {:withWidth withWidth[0m
[2m 11 | :colorManipulator colorManipulator})[0m
[2m 12 | [0m
--------------------------------------------------------------------------------
[1m------ WARNING #3 - -----------------------------------------------------------[0m
File: /var/jenkins_home/workspace/loud_Projects_co.foo.my_PR-916@2/src/cljsjs/material_ui.cljs:10:6
--------------------------------------------------------------------------------
[2m 7 | [0m
[2m 8 | (set! js/MaterialUI MaterialUI)[0m
[2m 9 | (set! js/MaterialUIStyles MaterialUIStyles)[0m
[1m 10 | (set! js/MaterialUIUtils #js {:withWidth withWidth[0m
------------^-------------------------------------------------------------------
[33;1mconstant MaterialUIUtils assigned a value more than once.
Original definition at externs.shadow.js:7[0m
--------------------------------------------------------------------------------
[2m 11 | :colorManipulator colorManipulator})[0m
[2m 12 | [0m
--------------------------------------------------------------------------------
[1m------ WARNING #4 - -----------------------------------------------------------[0m
File: /var/jenkins_home/workspace/loud_Projects_co.flair.my_PR-916@2/src/cljsjs/material_ui_svg_icons.cljs:4:6
--------------------------------------------------------------------------------
[2m 1 | (ns cljsjs.material-ui-svg-icons[0m
[2m 2 | (:require ["material-ui/svg-icons" :as MaterialUISVGIcons]))[0m
[2m 3 | [0m
[1m 4 | (set! js/MaterialUISvgIcons MaterialUISVGIcons)[0m
------------^-------------------------------------------------------------------
[33;1mconstant MaterialUISvgIcons assigned a value more than once.
Original definition at externs.shadow.js:6[0m
--------------------------------------------------------------------------------
[2m 5 | [0m
--------------------------------------------------------------------------------
[1m------ WARNING #5 - -----------------------------------------------------------[0m
File: /var/jenkins_home/workspace/loud_Projects_co.foo.my_PR-916@2/src/cljsjs/react.cljs:4:6
--------------------------------------------------------------------------------
[2m 1 | (ns cljsjs.react[0m
[2m 2 | (:require [react :as React]))[0m
[2m 3 | [0m
[1m 4 | (set! js/React React)[0m
------------^-------------------------------------------------------------------
[33;1mconstant React assigned a value more than once.
Original definition at EXTERNS:resources/lib/ext/react.ext.js:12[0m
--------------------------------------------------------------------------------
[2m 5 | [0m
--------------------------------------------------------------------------------
[1m------ WARNING #6 - -----------------------------------------------------------[0m
Resource: com/cognitect/transit.js:649:8
variable module is undeclared
--------------------------------------------------------------------------------
[1m------ WARNING #7 - -----------------------------------------------------------[0m
Resource: shadow.js.shim.module$react.js:3:30
variable shadow$bridge is undeclared
--------------------------------------------------------------------------------
nil
(this is shadow-cljs 2.15.1, which I am using because the current project I’m compiling isn’t compatible with versions of clojurescript beyond the one bundled with that version of shadow)
could this be related
Resource: shadow.js.shim.module$react.js:3:30
variable shadow$bridge is undeclared
https://github.com/thheller/shadow-cljsjs/blob/master/src/main/cljsjs/react.cljs#L4
for react you don't really need them though, since they are already provided by default
Ok, I think I fixed those warnings but I still get
------ WARNING #1 - -----------------------------------------------------------
Resource: shadow.js.shim.module$react.js:3:30
variable shadow$bridge is undeclared
--------------------------------------------------------------------------------
nil
is this a warning I can ignore, or would you expect it to break the build? Not sure where to start to try to fix itit’s weird because I don’t get any of these compiler warnings when I do shadow-cljs watch app
instead of shadow-cljs release app