Would like to check if anyone seen this issue before I file in github... Previously, with the compojure template, I can change my route handler and refresh the browser to see the changes applied. Now with the reitit template, I need to refresh twice. The first refresh triggers namespace recompile and reload but returns the old result. The second refresh returns updated result.
I suspect this is because the ring.middleware.relaod
reloads the namespace, but it is using the old handler to process its current request.. But that worked for compojure somehow?
or perhaps it is because the new template uses mount
for the handler
@yogthos i am using +shadow-cljs profile with luminus. After creating the project, when i run lein shadow --watch app Preparing npm packages Exception in thread "main" java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonGenerator.writeStartObject(Ljava/lang/Object;)V
sorry lein shadow watch app Preparing npm packages Exception in thread "main" java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonGenerator.writeStartObject(Ljava/lang/Object;)V
Am i missing anything?
The error indicates a dependency conflict. I would check your ~/.lein/profiles.clj
to see if there are any plugins that might be causing the issue.
I have this in ~/.lein/profiles.clj
{:user {:dependencies [[proto-repl "0.3.1"]]}}
shadow-cljs compile app works, but not lein shadow compile app
Is there any advantage using lein shadow v/s shadow-cljs?
There's no real difference, all lein-shadow does is allow you to keep the shadow config in project.clj
so if shadow runs standalone, I'd just go with that