Now, when I run lein fig:build, I get the following error:
2020-07-15 12:36:08.586:INFO::main: Logging initialized @4006ms to org.eclipse.jetty.util.log.StdErrLog
Configuration error in CLJS compile options: dev.cljs.edn
-- Spec failed --------------------
{:main ..., :target :bundle, :bundle-cmd ...}
^^^^^^^
should be one of: :nodejs, :webworker
-- Doc for :target -----
If targeting nodejs add this line. Takes no other options at the
moment. The default (no :target specified) implies browsers are being
targeted. Have a look here for more information on how to run your
code in nodejs.
:target :nodejs
-------------------------
Detected 1 error
I got a reply on Clojurians slack saying the versions of CLJS and figwheel-main are both old versions. I'll try with newer versions and report back. Until then, closing the ticket.
Hi, I made a basic reagent template by following https://rigsomelight.com/figwheel-main-template/
Running
lein fig:build
works no problem (hot reloading, repl -> browser connection all work)Then, I followed this guide to install an npm library: https://figwheel.org/docs/npm.html
Now, when I run
lein fig:build
, I get the following error:My
project.clj
My
dev.cljs.edn
:Thanks.