figwheel-main

figwheel-main http://figwheel.org
2019-04-26T06:41:04.023Z

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

erwinrooijakkers 2019-04-26T11:03:38.023300Z

I still have this error

erwinrooijakkers 2019-04-26T11:03:56.023500Z

erwinrooijakkers 2019-04-26T11:04:14.023900Z

It is probably related to https://figwheel.org/docs/jetty_conflicts.html

erwinrooijakkers 2019-04-26T11:05:01.024800Z

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

erwinrooijakkers 2019-04-26T11:18:28.025200Z

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

erwinrooijakkers 2019-04-26T11:27:25.025400Z

New error:

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

erwinrooijakkers 2019-04-26T11:44:26.025900Z

Not solvable by adding the jetty-util dependency

erwinrooijakkers 2019-04-26T11:44:40.026100Z

Anyone an idea?

erwinrooijakkers 2019-04-26T11:47:37.026300Z

https://github.com/bhauman/figwheel-main/issues/167

athomasoriginal 2019-04-26T13:05:17.030Z

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)