Good day to all. I have recently joined this channel because I am interested in building a react native app (for android) using cljs. I have done a number of projects with Clojure and ClojureScript but have never build a mobile app. Nor have I had much experience with node.
After a bit of research, I decided to give Krell a go. I followed the instructions on this page https://github.com/vouch-opensource/krell/wiki/Reagent-Tutorial. I did modify the krell hash to be the latest commit. After some fiddling and some groping around in the dark, I managed to get an app up and running with reframe (one of my favorite frameworks for my cljs projects). Hot loading works as advertised. Needless to say I was pretty stoked.
I proceeded to figure out how to create an apk to download to my phone. Again more fiddling to (eventually) get some limited success. Where things stand now is that if I generate my target/main.js with clj -m krell.main -co build.edn -c or with clj -m krell.main -co build.edn -O simple -c my app works just fine. However, if I generate with advanced optimizations (`clj -m krell.main -co build.edn -O advanced -c`) it fails with a message "Cannot read property 'D' of undefined".
I am assuming that there is some configuration issue at play (possibly an externs issue?). Of course the 'advanced' optimizations makes it difficult to track down the source of the error.
So after my long-winded explanation I was wondering if anyone on this channel might have some pointers on where I could look.
I'd suggest to go with shadow-cljs, the setup is simple and it just works
I may very well do that Roman. I liked the krell because of how lightweight it is.