Closed jdkealy closed 6 years ago
Hi, it looks like you have a reference to a crud.middleware
namespace in the code, and that namespace isn't available. If you published the common code as a library to clojars, then you would need to include it as a dependency in the project.clj
file.
how did crud.middleware get in there on a freshly generated template? I can start the server, repl, run fighweel, etc, just not
lein install
That definitely shouldn't be referenced in the generated template. One thing you can try doing is clearing out the cached version of the template locally by deleting the ~/.m2/repository/reagent/lein-template/
folder. You could also check that you don't have a pinned version of the template in ~/.lein/profiles.clj`.
As a side note, you likely want to be running lein uberjar
instead of lein install
to package the application. The latter installs it as a library in your local maven repo, and it doesn't run through the same build steps.
wow thanks so much. Clearing lein template from ~/.m2 worked!
Hello,
Forgive me if my question/issue demonstrates a flawed understanding of clojars, however, I use this template to bootstrap new projects. I wanted to take some code out that is common amongst all my projects. I was able to deploy a barebones cljs project, but a barebones reagent-template project results in the stack trace below after a freshly created project. Many thanks :)