-
Notifications
You must be signed in to change notification settings - Fork 11
Description
For some reason, the template lein new reagent-frontend <name> +shadow-cljs breaks for me if the shadow-cljs dependency in package.json is above version 2.19.8.
npx shadow-cljs watch app will only render the page when I remove :handler user/app from the shadow-cljs.edn file. I was looking through the changes in https://github.com/thheller/shadow-cljs/blob/6d72ac7e09a1e153fa05498f19fa8dee34bd2474/CHANGELOG.md but I can’t isolate what may be causing this (maybe a dependency bump).
Of course, this relates to the form (def app (wrap-resource identity "public")) in src/user.clj. Replacing the call to wrap-resource with the shadow-cljs default shadow.http.push-state/handle fixes it, so I am quite sure that it has something to do with the ring-core dependency (1.9.5 in my case) that may conflict somehow with shadow-cljs (>= 2.19.9).
But even after reinstalling ring and shadow-cljs in my local Maven repo it will just render an empty page, with an empty <head> and <body> tag, no error messages in the terminal or browser console.
It happens with Reagent 1.1.0 as well as 1.1.1.