无法导入ring.middleware.anti-forgery
(ns msa-debugger-clojure.core
(:require
[reagent.core :as r :refer [atom]]
[reagent.session :as session]
[reitit.frontend :as reitit]
[clerk.core :as clerk]
[accountant.core :as accountant]
[reagent-forms.core :refer [bind-fields]]
[reagent-forms.core :as reagent-forms]
[ring.middleware.anti-forgery :as anti-forgery]
))
如自述文件所述,将依赖项添加到project.clj:
:dependencies [[org.clojure/clojure "1.10.0"]
[ring-server "0.5.0"]
[reagent "0.8.1"]
[reagent-utils "0.3.2"]
[ring "1.7.1"]
[ring/ring-defaults "0.3.2"]
[ring/ring-anti-forgery "1.3.0"]
[hiccup "1.0.5"]
[yogthos/config "1.1.1"]
[org.clojure/clojurescript "1.10.520"
:scope "provided"]
[metosin/reitit "0.2.13"]
[pez/clerk "1.0.0"]
[venantius/accountant "0.2.4"
:exclusions [org.clojure/tools.reader]]
[reagent-forms "0.5.43"]
]
我做错了什么? :c
答案 0 :(得分:0)
ring
是Clojure库,在ClojureScript中不起作用。