margareta.dev

ClojureScript start template

June 18, 2020

Smooth start

lein new figwheel clojure-test -- --reagent

Install npm dependencies via npm install. Then run lein figwheel. In case you this error:

Figwheel: Cutting some fruit, just a sec ...
Could not find artifact org.clojure:clojurescript:jar:1.10.775 in central (https://repo1.maven.org/maven2/)
Could not find artifact org.clojure:clojurescript:jar:1.10.775 in clojars (https://repo.clojars.org/)
This could be due to a typo in :dependencies, file system permissions, or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.

As of 2020-06-18 there was a bug in figwheel-template - clojurescript version was incorrect, see github issue.

Go into project.clj and set the version to the latest. At the time of writing it is 1.10.758.