For the book itself, it's based on Luminus, so everything uses mount since that's what Luminus uses
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?
Oh I would check the test-config.edn
in if you are using it for CI, you can just remove it from .gitignore
.
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"]]}}
ok, I didn’t know if it would be a big deal. I was concerned that the config file would eventually have login credentials? I don’t know much yet about this file, I just read the comments it had inside and became a bit worried. Thanks for the feedback.
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