0

来自终端的命令:  npx shadow-cljs watch app

构建失败:   The required namespace "cljs-http.client" is not available, it was required by "learn/hello.cljs"

如何解决上述问题?

影子-cljs.edn:

{:dependencies
 [[reagent "0.9.1"]
  [cljs-http "0.1.46"]]
 :source-paths
 ["src" "test"]
 :builds
 {:app {:target :browser
        :output-dir "resources/public/js"
        :asset-path "/js"
        :modules {:main {:entries [learn.hello]}}}}}

你好.cljs:

(ns learn.hello
  (:require [reagent.core :as r]
            [reagent.dom :as rdom]
            [clojure.string :as str]
            [cljs.core.async :refer [<!]]
            [cljs-http.client :as http])
  (:require-macros [cljs.core.async.macros :refer [go]]) )
4

0 回答 0