This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-04
Channels
- # announcements (7)
- # aws (5)
- # babashka (72)
- # beginners (43)
- # calva (12)
- # cider (9)
- # clara (3)
- # clj-kondo (12)
- # cljdoc (32)
- # cljs-dev (10)
- # cljsrn (1)
- # clojure (78)
- # clojure-dev (50)
- # clojure-europe (17)
- # clojure-gamedev (8)
- # clojure-nl (1)
- # clojure-spec (30)
- # clojure-uk (3)
- # clojurescript (52)
- # core-async (1)
- # cursive (5)
- # datomic (8)
- # emacs (58)
- # events (2)
- # fulcro (5)
- # graalvm (7)
- # holy-lambda (37)
- # honeysql (9)
- # jobs (5)
- # leiningen (3)
- # lsp (7)
- # lumo (2)
- # malli (3)
- # meander (13)
- # membrane-term (64)
- # missionary (19)
- # music (3)
- # nextjournal (8)
- # off-topic (29)
- # pathom (16)
- # polylith (14)
- # portal (16)
- # re-frame (2)
- # reagent (5)
- # sci (14)
- # shadow-cljs (20)
- # spacemacs (6)
- # sql (1)
- # tools-deps (58)
- # vim (14)
any fix for OutOfMemoryError
using shadow-cljs? I recently started encountering this, using shadow for our frontend build.
[2021-11-04 11:03:49.953 - WARNING] :shadow.cljs.devtools.server.util/handle-ex - {:msg {:type :start-autobuild}} OutOfMemoryError unable to create new native thread
ok, figured it out I guess. should have checked java -version first. due to messed up system PATH issues, version 1.8 was being picked up instead of 1.11. shadow-cljs build fails on 1.8 I guess.
shadow-cljs works absolutely fine with 1.8. OutOfMemory means exactly that. Meaning your machine did not have enough available Memory to complete the operation. 1.11 got slightly better memory management so it might last a while longer but it'll not protect from it.
regardless this has nothing to do with shadow-cljs per se. You can try to limit the amount of memory shadow-cljs gets via :jvm-opts ["-Xmx512M"]
in shadow-cljs.edn
but that can still OOM if your system is not able to provide 512mb of ram when needed
when I reference a private var in another ns, I don't see any warnings like I would expect.
please check with the regular compiler. no clue if there is supposed to be a warning or if it needs to be enabled manually.
everyone running into issues with mui5 or other JS libs having weird TypeError: (0 , _app._registerComponent) is not a function
like errors please try shadow-cljs 2.15.13
This has been quite elusive, and seems to go away when trying to pinpoint the root cause. But we have been seeing these a couple of times within the last month, so hopefully that's the end of it.
that bumps to the latest cljs release and more importantly the latest closure compiler release which seems to have fixed that issue as far as I can tell
^ @martinklepsch (should also fix that firebase issue)
I tried with 2.16.3
just now and am still seeing TypeError: (0 , _app._registerComponent) is not a function
It does seem like the upgrade itself worked though as evident by some warnings related to use of unrequired namespaces
Stuff similar to assuming goog.object already being loaded. It’s most likely not related to the issue we’re encountering, just mentioning as a signal that the update took effect
goog.object would most likely be related to this https://clojurescript.org/news/2021-11-04-release#_google_closure_library_goog_module_global_access
basically if you have any direct use of goog.object
(or a macro that generates that) it'll break now
the namespace using goog.object
must have a require for it, which in case of macros most likely won't be the case
but none of this has anything to do with TypeError: (0 , _app._registerComponent) is not a function
type errors
Yes. The core of it is just that I’m still seeing this issue with the latest shadow cljs
I tried with 2.16.3
just now and am still seeing TypeError: (0 , _app._registerComponent) is not a function
It does seem like the upgrade itself worked though as evident by some warnings related to use of unrequired namespaces