This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-06
Channels
- # babashka (62)
- # beginners (52)
- # calva (37)
- # clj-kondo (23)
- # cljs-dev (13)
- # clojure (18)
- # clojure-europe (7)
- # clojure-sg (1)
- # clojure-spec (27)
- # clojurescript (37)
- # datomic (14)
- # events (2)
- # fulcro (9)
- # graalvm (12)
- # helix (1)
- # introduce-yourself (1)
- # keyboards (3)
- # lsp (3)
- # missionary (24)
- # nextjournal (7)
- # pedestal (3)
- # polylith (15)
- # re-frame (5)
- # reitit (4)
- # releases (2)
- # shadow-cljs (54)
- # testing (7)
- # uncomplicate (4)
FYI I have updated my Fulcro Explained: When UI Components and Data Entities Diverge post by adding a https://blog.jakubholy.net/img/fulcro-divergent-ui-data/pathom-placeholders.webp and adding the section https://blog.jakubholy.net/2020/fulcro-divergent-ui-data/#_adapting_backend_data_to_the_ui_components_structure that you will hopefully find useful. Feedback welcome!
The picture illustrating Pathom placeholders has been fixed
Good morning. I upgraded clojurescript/shadow-cljs/fulcro/fulcro RAD to their latest versions but did not change my package.json. I am now getting these errors in the Chrom console:
main.js:1455 TypeError: Cannot read properties of undefined (reading 'get')
at eval (time.cljs:4)
at eval (<anonymous>)
at Object.goog.globalEval (main.js:488)
at Object.env.evalLoad (main.js:1563)
at main.js:2923
reportError @ main.js:1455
env.evalLoad @ main.js:1565
(anonymous) @ main.js:2923
There are several more of these but it is related to cljc.java-time:
(:require ["@js-joda/core" :as js-joda]))
(def Period (goog.object/get js-joda "Period"))
(def Instant (goog.object/get js-joda "Instant"))
(def Duration (goog.object/get js-joda "Duration"))
(def LocalDate (goog.object/get js-joda "LocalDate"))
(def LocalTime (goog.object/get js-joda "LocalTime"))
(def ZonedDateTime (goog.object/get js-joda "ZonedDateTime"))
(def LocalDateTime (goog.object/get js-joda "LocalDateTime"))
(def MonthDay (goog.object/get js-joda "MonthDay"))
(def Year (goog.object/get js-joda "Year"))
(def YearMonth (goog.object/get js-joda "YearMonth"))
(def ZoneId (goog.object/get js-joda "ZoneId"))
(def DayOfWeek (goog.object/get js-joda "DayOfWeek"))
(def Month (goog.object/get js-joda "Month"))
(def Clock (goog.object/get js-joda "Clock"))
(def ZoneOffset (goog.object/get js-joda "ZoneOffset"))
(def OffsetDateTime (goog.object/get js-joda "OffsetDateTime"))
(def OffsetTime (goog.object/get js-joda "OffsetTime"))
I need help resolving this.@hadilsabbagh18 see https://clojurescript.org/news/2021-11-04-release and set :compiler-options {:global-goog-object&array true}
in your build config
oh I think the cache might not invalidate properly since it doesn't account for that flag. delete the .shadow-cljs/builds/<your-build-id>
dir and restart the watch in case that is running
The picture illustrating Pathom placeholders has been fixed