Displays an error on the line, which is not even. In the project , made on video from Joker 2014 .
Individually, all functions are compiled without error messages. But when you run the run-server from the code, nothing is output to localhost:8080 and an error is generated in the REPL:
CompilerException java.lang.RuntimeException: No such namespace: ohs, compiling:(NO_SOURCE_PATH:33:3) (ns joker.handler (:require [compojure.core :refer :all] [compojure.handler :as handler] [org.httpkit.server :as ohs] [compojure.route :as route] [ring.middleware.defaults :refer [wrap-defaults site-defaults]])) (defn index [req] {:body (str req) :status 200}) (def stop (ohs/run-server #'app {:port 8080}) ) (comment ;; magic lib (require '[vinyasa.pull :as vp]) (vp/pull 'http-kit) ) (defroutes app-routes (GET "/" [] "Hello World") (route/resources "/") (route/not-found "Not Found")) (def app (handler/site app-routes))
run-server" how? From REPL? - D-sidestop) and send it to the REPL, right? And try to do the same before this with thensform at the top. - D-sidensform, theohsnamespace would have been. - D-side