Fork me on GitHub
#shadow-cljs
<
2022-08-23
>
Drew Verlee03:08:48

Really quick 🔥 take. 1. The GitHub readme doesn't need to say wip next to the link to the user docs, they are amazing and more mature than I am. 2. I would put the doc link at the top of the readme or something as i think it's too easy to scroll past. I have no strong feelings about this, it just occurred to me while skimming the readme for like the 50th time.

🔥 3
👍 1
danbunea08:08:26

with-meta, when targeting node for the compilation results in a is not a function TypeError. Context: I am trying to use spy (https://github.com/alexanderjamesking/spy) for mocking in some tests, and it seems in cljs it doesn't work when targeting node. To reproduce the issue, run: npm run test on https://github.com/DanBunea/spy-test

thheller09:08:27

with-redefs requires using :compiler-options {:static-fns false} in your build config

thheller09:08:43

(which I think is what spy needs too)

danbunea09:08:32

Thank you @U05224H0W All works now 🙂

👍 1
danbunea09:08:36

I also updated the github project for the others to see how this problem is solved

mrchance09:08:13

Hi! I upgraded some npm module versions to the latest, and after the upgrade, I'm getting

shadow.module.app.append.js:4 An error occurred when calling (<my-stuff>/init)
An error occurred when loading shadow.module.app.append.js
router.cljc:204 Uncaught ReferenceError: regeneratorRuntime is not defined
...
    at Object.eval [as re_frame$router$IEventQueue$_run_queue$arity$1] (router.cljc:198:44)
    at eval (router.cljc:146:64)
I saw there was some discussion in the channel before ( https://clojurians.slack.com/archives/C6N245JGG/p1644314413332399?thread_ts=1644313184.796159&amp;cid=C6N245JGG ) and the recommendation was to install regenerator-runtime, but the problem seems to be coming from re-frame, it worked before, so I wanted to ask more about what's going on there

mrchance09:08:14

(Update: Doing that fix worked, just had to require it once in my main namespace)