Fork me on GitHub
#figwheel-main
<
2019-04-26
>
cjohansen06:04:04

@dnolen to start the server on a different port set {:ring-server-options {:port 3449}}

erwinrooijakkers11:04:38

I still have this error

erwinrooijakkers11:04:01

I did all suggestions from lein deps :tree and added [javax.servlet/servlet-api "2.5"] to dev profile but I still get the same error

erwinrooijakkers11:04:28

Alright it is fixed by adding the following to profiles.clj dev profile: [org.eclipse.jetty/jetty-http "9.4.17.v20190418"]

erwinrooijakkers11:04:25

New error:

1. Caused by java.lang.ClassNotFoundException
org.eclipse.jetty.util.ConcurrentArrayQueue

erwinrooijakkers11:04:26

Not solvable by adding the jetty-util dependency

athomasoriginal13:04:17

I have a js-environment.js script to be run in node. I was thinking it would be sweet if I could write this as a cljs file and then pass the the start cljs function to :launch-js like outlined here https://figwheel.org/docs/testing.html#using-a-clojure-function For example:

(ns my.cljs.js-launcher)

(defn start [{:keys [output-dir]}]
   ...stuff to start js env)
and then clojure -m figwheel.main -fwo '{:launch-js my.cljs.js-launcher/start}' -m my.test-runner - is there a proper way to make this happen or maybe I am just going about this the wrong way? My JS script works, I was just thinking it would be sweet to have it all written in Clojure(script)