Skip to content

Luminus template +cljs produces bug in routes.home namespace #522

@cindywu

Description

@cindywu

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:

(defroutes home-routes
  (GET "/" [] (home-page))
  (GET "/docs" [] (ok (-> "docs/docs.md" io/resource slurp))))

Change ok to response/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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions