reagent-project / reagent-template

A Leiningen template for projects using Reagent.
MIT License
394 stars 55 forks source link

Lein run not working #143

Closed pyb closed 6 years ago

pyb commented 6 years ago

I have tested this with the sample trivial project shipped with the template.

lein run does not create the file js/app.js, which means I get the ClojureScript has not been compiled! message.

However, lein uberjar works as intended.

pyb commented 6 years ago

Fixed by running lein cljsbuild once before lein run

yogthos commented 6 years ago

The proper way to compile ClojureScript in development is to run lein figwheel in a separate terminal. The lein run command compiles server side code, while Figwheel hotloads changes for the front-end.