Clojurescript:没有这样的命名空间:ring.middleware.anti-forgery

问题描述 投票:1回答:1

无法导入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

clojurescript ring reagent
1个回答
0
投票

ring是一个Clojure库,不适用于ClojureScript。

© www.soinside.com 2019 - 2024. All rights reserved.