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

target needs to be in deps.edn :paths key #3

Open
MageMasher opened this issue Jan 4, 2019 · 1 comment
Open

target needs to be in deps.edn :paths key #3

MageMasher opened this issue Jan 4, 2019 · 1 comment

Comments

@MageMasher
Copy link

The sample project only worked once I added "target" to my deps.edn file

{:paths ["src" "resources" "target"]
 :deps {org.clojure/clojurescript {:mvn/version "1.10.439"}
        com.bhauman/figwheel-main {:mvn/version "0.2.1-SNAPSHOT"}}}

Otherwise I was getting this error in my call to figwheel main

➜ clj -m figwheel.main -b ios -r
2019-01-04 09:08:23.188:INFO::main: Logging initialized @5067ms to org.eclipse.jetty.util.log.StdErrLog
[Figwheel:WARNING] Attempting to dynamically add "target" to classpath!
[Figwheel:WARNING] Target directory "target" is not on the classpath
[Figwheel:WARNING] Please fix this by adding "target" to your classpath
 I.E.
 For Clojure CLI Tools in your deps.edn file:
    ensure "target" is in your :paths key

 For Leiningen in your project.clj:
   add it to the :resource-paths key

[Figwheel] Compiling build ios to "target/public/cljs-out/ios-main.js"
[Figwheel] Successfully compiled build ios to "target/public/cljs-out/ios-main.js" in 7.756 seconds.
[Figwheel] Watching paths: ("src") to compile build - ios
[Figwheel] Starting Server at http://localhost:9500
[Figwheel] Starting REPL
Prompt will show when REPL connects to evaluation environment (i.e. a REPL hosting webpage)
Figwheel Main Controls:
          (figwheel.main/stop-builds id ...)  ;; stops Figwheel autobuilder for ids
          (figwheel.main/start-builds id ...) ;; starts autobuilder focused on ids
          (figwheel.main/reset)               ;; stops, cleans, reloads config, and starts autobuilder
          (figwheel.main/build-once id ...)   ;; builds source one time
          (figwheel.main/clean id ...)        ;; deletes compiled cljs target files
          (figwheel.main/status)              ;; displays current state of system
Figwheel REPL Controls:
          (figwheel.repl/conns)               ;; displays the current connections
          (figwheel.repl/focus session-name)  ;; choose which session name to focus on
In the cljs.user ns, controls can be called without ns ie. (conns) instead of (figwheel.repl/conns)
    Docs: (doc function-name-here)
    Exit: :cljs/quit
 Results: Stored in vars *1, *2, *3, *e holds last exception object
JavaScript environment will not launch automatically when :open-url is false

And this error from ios simulator
screen shot 2019-01-04 at 9 23 53 am

@codonovan
Copy link

I had this problem this yesterday. Updating to org.clojure/clojurescript {:mvn/version "1.10.439"} fixed it for me. I still get the warnings but my bundle builds. Have you used an older version of the library, might need to clean out /target?

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