Fork me on GitHub
#lein-figwheel
<
2019-11-22
>
worrelsik09:11:39

When I run

lein new figwheel cljs-weather -- --reagent
on MS Windows 10, I'm getting this empty require form in the ns macro:
(ns cljs-weather.core
    (:require ))
Is this to be expected or am I missing something?

worrelsik12:11:05

On an old linux machine, I get the expected

(ns cljs-weather.core
    (:require [reagent.core :as reagent :refer [atom]]))
so there's something not OK on my windows machine.

worrelsik12:11:44

It seems to be a powershell-related issue: when running the command in a CMD-window, I also get the expected output.

worrelsik14:11:33

Luckily I found @juergenhoetzels' post on issue 2526 https://github.com/technomancy/leiningen/issues/2526#issuecomment-468951181 In Powershell, one needs to quote the double dashes:`lein new figwheel cljs-weather '--' --reagent`