Fork me on GitHub
#helix
<
2021-11-05
>
Derek00:11:15

Using helix 0.1.3 and shadow-cljs 2.15.13 (which bumps ClojureScript and the google closure compiler), my helix app is throwing an error at every defnc:

TypeError: Cannot read properties of undefined (reading 'set')
Anyone else seeing this?

lilactown01:11:04

that makes sense, given the changelog I read by dnolen

Derek02:11:57

and this: > Some ClojureScript libraries assume that because cljs.core loaded goog.object, it would be safe to refer to such definitions directly, i.e. goog.object/get without the necessary require. This pattern can be useful in the writing of macros so that users can elide a require. However, this is now an anti-pattern and will fail. from https://clojurescript.org/news/2021-11-04-release

lilactown14:11:25

the compiler flag, i mean

Derek14:11:46

It’s an easier fix for tick since it’s in a cljc file and the require can be within a reader conditional

lilactown14:11:33

yeah. it's frustrating, since there isn't really a "best" way to emit code from a macro that does JS interop now

lilactown14:11:39

i'll probably create a helper fn in the cljs ns to handle setting the display name