You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating a new luminus project using lein new luminus new-project +cljs produces a bug in the new-project.routes.home namespace.
When the user runs lein run they will get this error:
Exception in thread "main" java.lang.ExceptionInInitializerError
at clojure.main.<clinit>(main.java:20)
Caused by: java.lang.RuntimeException: Unable to resolve symbol: ok in this context, compiling:(new_proj/routes/home.clj:12:19)
To resolve the error, go into new-project.routes.home and make the following change:
It looks like you might have an older version of the template. Might be worth checking if you have a specific version pinned in your ~/.lein/profiles.clj, and you could clear the local maven cache for the template by removing the ~/.m2/repository/luminus/lein-template/ folder.
The latest version of the template should be generating the following content for new-project.routes.home:
Creating a new luminus project using
lein new luminus new-project +cljs
produces a bug in thenew-project.routes.home
namespace.When the user runs
lein run
they will get this error:To resolve the error, go into
new-project.routes.home
and make the following change:Change
ok
toresponse/ok
.I am pretty new to Clojure(Script), but if someone points me in the right direction I can try and fix and submit a PR.
The text was updated successfully, but these errors were encountered: