Fork me on GitHub
#fulcro
<
2017-08-11
>
liesbeth07:08:22

I’ve checked out fulcro-template yesterday, but I am having difficulties with compiling the clojurescript. When I start the figwheel REPL, it gives the error

Failed to compile "resources/public/js/test/test.js" in 31.183 seconds.
----  Could not Analyze  resources/public/js/test/fulcro/client/routing.cljc  ----

  No such namespace: cljs.loader, could not locate cljs/loader.cljs, cljs/loader.cljc, or Closure namespace "cljs.loader" 

----  Analysis Error : Please see resources/public/js/test/fulcro/client/routing.cljc  ----
I’ve tried updating the clojurescript version to 1.9.854, but I keep getting the same result.Googling this gave me no guidance. Does anyone have an idea what the problem and a solution may be?

tony.kay07:08:35

I was working on dynamic loading in fulcro. I didn’t realize that got pushed into the template yet. Your solution is the right one though..unless you’re still ending up with the wrong version of cljs

tony.kay07:08:36

@liesbeth I’m checking it now. I’ll push a fix if it’s broken, which it may be 😕

tony.kay08:08:35

I just released 1.0.0-beta7. The updated template uses it. Some important notes: 1. I had to change the networking API due to a circular dependency. app is no longer passed to start. If you’ve written custom networking, you’ll have to send app to it from the started callback. See upload_server.clj for an example. 2. As a result of (1), fulcro-spec 1.0.0-beta7 is required if you’re working with 1.0.0-beta7 of fulcro.

tony.kay08:08:59

The devguide has a number of improvements, and there is now a partially written reference guide.

tony.kay08:08:31

make sure you clean your env….it should work now

liesbeth08:08:29

@tony.kay I’ve pulled the changes and had some trouble, but after checking out the whole project again, it worked 🙂!

tony.kay09:08:15

Thanks for letting me know you were having trouble!

claudiu10:08:05

has anyone used hugsql with the setup from fulcro-template ? Trying to get it to reload on server restart.

tony.kay16:08:43

@claudiu I would think if you reload the clj namespaces that call def-db-fns and such it should work. Are those paths part of set-refresh-dirs?

claudiu18:08:24

@tony.kay yes. Will give it a try with a fresh fulcro-template, maybe my setup has something. It does have that strange part with read .sql & generate the functions in the namespace, thinking reload needs special attention because of that.

a.espolov18:08:51

@tony.kay is it possible to use subdomains in fulcro application?

wilkerlucio19:08:43

@a.espolov yup, this is more outside of fulcro concern actually, but yes