[英]figwheel build can't find my core cljs namespace
I'm trying to use figwheel build for my project. 我正在尝试为我的项目使用figwheel构建。 I use the latest versions of libs and my leiningen version is 2.5.1.
我使用的是libs的最新版本,而leiningen的版本是2.5.1。 My build file looks like this:
我的构建文件如下所示:
(defproject figwheel-issue "1.2.3"
:plugins [[lein-cljsbuild "1.0.6"]
[lein-figwheel "0.3.3"]]
:dependencies [[org.clojure/clojurescript "0.0-3269"]
[org.clojure/clojure "1.7.0-beta3"]]
:cljsbuild {
:builds [{ :id "dev"
:source-paths ["src"]
:figwheel true
:compiler {
:main myproject/core
:hashbang false
:asset-path "js/out"
:output-to "resources/public/js/example.js"
:output-dir "resources/public/js/out"
:optimizations :none}}]})
Normal build works ok. 正常构建可以。 So when I run:
因此,当我运行时:
lein cljsbuild once
I get: 我得到:
Successfully compiled "resources/public/js/example.js" in 0.873 seconds.
But when I try to run: 但是当我尝试运行时:
lein figwheel
Figwheel build can't seem to find my core namespace: Figwheel构建似乎找不到我的核心名称空间:
Compiling "resources/public/js/example.js" failed.
clojure.lang.ExceptionInfo: failed compiling file:target/figwheel_temp/dev/figwheel/connect.cljs
at clojure.core$ex_info.invoke (core.clj:4591)
Caused by: clojure.lang.ExceptionInfo: No such namespace: core, could not locate core.cljs, core.cljc, or Closure namespace "core" at line 1 target/figwheel_temp/dev/figwheel/connect.cljs
at clojure.core$ex_info.invoke (core.clj:4591)
Any ideas what could be wrong? 任何想法可能有什么问题吗? I created a minimal github project which demonstrates the issue here :
我创建了一个最小的github项目,在这里演示了这个问题:
https://github.com/auramo/figwheel-build-issue https://github.com/auramo/figwheel-build-issue
问题是名称空间,应该是:
:main myproject.core
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.