Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial 2: Dependencies issue #455

Open
zackteo opened this issue May 13, 2020 · 2 comments
Open

Tutorial 2: Dependencies issue #455

zackteo opened this issue May 13, 2020 · 2 comments

Comments

@zackteo
Copy link

zackteo commented May 13, 2020

When running

boot wait serve -d target cljs target

I seem to either get error on the serving step (if I use the dependencies in the md document)

java.io.FileNotFoundException: Could not locate nrepl/server__init.class or nrepl/server.clj on classpath.
clojure.lang.Compiler$CompilerException: java.io.FileNotFoundException: Could not locate nrepl/server__init.class or nrepl/server.clj on classpath., compiling:(boot/repl_server.clj:1:1)
clojure.lang.ExceptionInfo: java.io.FileNotFoundException: Could not locate nrepl/server__init.class or nrepl/server.clj on classpath., compiling:(boot/repl_server.clj:1:1)

or the compiling step (if I use the latest dependencies)

java.lang.RuntimeException: No such var: str/includes?
clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: No such var: str/includes?, compiling:(adzerk/boot_cljs/impl.clj:88:44)
clojure.lang.ExceptionInfo: java.lang.RuntimeException: No such var: str/includes?, compiling:(adzerk/boot_cljs/impl.clj:88:44)

This seems to work out

(set-env!
 :source-paths #{"src/cljs"}
 :resource-paths #{"html"}

 :dependencies '[[adzerk/boot-cljs "1.7.228-2"]
                 [pandeiro/boot-http "0.8.3"]])         ;; add http dependency
                 ;[org.clojure/tools.nrepl "0.2.12"]]) ;; required by boot-http

(require '[adzerk.boot-cljs :refer [cljs]]
         '[pandeiro.boot-http :refer [serve]]) ;; make serve task visible
@zackteo zackteo changed the title Tutorial 2: Depencies issue Tutorial 2: Dependencies issue May 13, 2020
@zackteo
Copy link
Author

zackteo commented May 13, 2020

Subsequently for

boot serve -d target watch reload cljs-repl cljs target

I took reference to the dependencies in https://github.com/adzerk-oss/boot-cljs-repl

@xmpace
Copy link

xmpace commented Sep 14, 2021

I met the same problem, and your solution works, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants