# Web Development with Clojure, Third Edition: Issue adding Shadow CLJS

**URL:** <https://forum.devtalk.com/t/web-development-with-clojure-third-edition-issue-adding-shadow-cljs/2382>\
**Category:** PragProg Customers\
**Tags:** book-web-development-with-clojure-third-edition, question\
**Created:** [20 September 2020 16:24 UTC](https://forum.devtalk.com/t/web-development-with-clojure-third-edition-issue-adding-shadow-cljs/2382 "2020-09-20T16:24:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jesse050717](https://forum.devtalk.com/user_avatar/forum.devtalk.com/jesse050717/32/1560_2.png) [@jesse050717](https://forum.devtalk.com/u/jesse050717)\
**Post date:** [20 September 2020 16:24 UTC](https://forum.devtalk.com/t/web-development-with-clojure-third-edition-issue-adding-shadow-cljs/2382/1 "2020-09-20T16:24:11Z")

</div>

Title: Web Development with Clojure, Third Edition, pg 116

Hi - I just started chapter 5 and I am stuck on page 116 while trying to start up shadow CLJS. Here is the error

```auto
shadow-cljs - nREPL server started on port 7002
shadow-cljs - watching build :app
[:app] Configuring build.
[:app] Compiling ...
[:app] Build failure:
The required namespace "guestbook.core" is not available, it was required by "guestbook/app.cljs".
"guestbook/core.clj" was found on the classpath. Should this be a .cljs file?

```

Here is my project.clj dev profile

```auto
:project/dev {:jvm-opts ["-Dconf=dev-config.edn"]
                  :dependencies [[pjstadig/humane-test-output "0.10.0"]
                                 [prone "2020-01-17"]
                                 [ring/ring-devel "1.8.1"]
                                 [ring/ring-mock "0.4.0"]
                                 [thheller/shadow-cljs "2.11.4"]
                                 [binaryage/devtools "0.9.10"]]
                  :plugins [[com.jakemccrary/lein-test-refresh "0.24.1"]
                                 [jonase/eastwood "0.3.5"]] 
                  :source-paths ["env/dev/clj" "env/dev/cljc" "env/dev/cljs"]
                  :resource-paths ["env/dev/resources"]
                  :repl-options {:init-ns user
                                 :timeout 120000}
                  :injections [(require 'pjstadig.humane-test-output)
                               (pjstadig.humane-test-output/activate!)]}

```

Here is my setup:

 ![Screen Shot 2020-09-20 at 12.21.17 PM](https://forum.devtalk.com/uploads/default/original/2X/5/55b54d96120e0ce73a6c7923134671ad5edff8ad.jpeg)

Any ideas here? Loving the book by the way, an enjoyable first dive into Clojure web development.

---

<div class="post-metadata">

**Author:** ![jesse050717](https://forum.devtalk.com/user_avatar/forum.devtalk.com/jesse050717/32/1560_2.png) [@jesse050717](https://forum.devtalk.com/u/jesse050717)\
**Post date:** [22 September 2020 02:09 UTC](https://forum.devtalk.com/t/web-development-with-clojure-third-edition-issue-adding-shadow-cljs/2382/2 "2020-09-22T02:09:18Z")

</div>

I’ve figured this one out. The previous project.clj with the :cljsbuild config had its own :source-paths [“src/cljs”] entry. When switching over to shadow-cljs, we also have to add “src/cljs” to our lein :source-paths. This isn’t called out in the current version of the book and might be worth including.  
Thanks

---

<div class="post-metadata">

**Author:** ![svmbrown](https://forum.devtalk.com/letter_avatar_proxy/v4/letter/s/7ea924/32.png) [@svmbrown](https://forum.devtalk.com/u/svmbrown)\
**Post date:** [26 September 2020 17:26 UTC](https://forum.devtalk.com/t/web-development-with-clojure-third-edition-issue-adding-shadow-cljs/2382/3 "2020-09-26T17:26:02Z")

</div>

Oops, sorry about that! We’ll fix that in the next release.

Thanks for bringing this to our attention, and thanks for reading!

---

<div class="post-metadata">

**Author:** ![nexonlouis](https://forum.devtalk.com/user_avatar/forum.devtalk.com/nexonlouis/32/1876_2.png) [@nexonlouis](https://forum.devtalk.com/u/nexonlouis)\
**Post date:** [10 January 2021 03:58 UTC](https://forum.devtalk.com/t/web-development-with-clojure-third-edition-issue-adding-shadow-cljs/2382/4 "2021-01-10T03:58:01Z")

</div>

I’m also having an issue with adding shadow-cljs, but my error is different from the one jesse050717 was having. I’m get the error “Syntax error compiling var at (shadow/build/compiler.clj:488:13).  
Unable to resolve var: comp/_source-map-data-gen-col_ in this context” When I run “npx shadow-cljs watch app”. Any idea? Should I create separate topic for my issue rather than folding into this one? Thanks for the great book!

 ![image](https://forum.devtalk.com/uploads/default/original/2X/c/c881f1ea87d4cf6fc5546d0f343769e685eade1c.jpeg)

---

<div class="post-metadata">

**Author:** ![nexonlouis](https://forum.devtalk.com/user_avatar/forum.devtalk.com/nexonlouis/32/1876_2.png) [@nexonlouis](https://forum.devtalk.com/u/nexonlouis)\
**Post date:** [10 January 2021 05:30 UTC](https://forum.devtalk.com/t/web-development-with-clojure-third-edition-issue-adding-shadow-cljs/2382/5 "2021-01-10T05:30:17Z")

</div>

NVM. I went to the source provided with the book and got it working. I was hoping to get through the book without “cheating”, but…

Still great book!
