Fork me on GitHub
#devcards
<
2015-12-08
>
grav08:12:19

Hey there! I’m having trouble getting a hosted devcards website to work. I get the devcards UI but no namespaces are listed

grav08:12:53

I have a my-app.cards namespace with the following

(ns my-app.cards
  (:require [devcards.core]))

(devcards.core/start-devcard-ui!*)

grav08:12:11

(I had to add the asterisk, it isn’t in the tutorial)

grav08:12:17

I then do lein cljsbuild once hostedcards and start a web server where my cards.html is located. And then I get the devcards UI but no namespaces are listed. Everything is working fine with figwheel

grav08:12:34

I only have one namespace in the app, and in there, I have

(ns my-app.my-component
  (:require [devcards.core])
  (:require-macros [devcards.core :refer [defcard-ng]))

grav12:12:06

Okay, I figured it out - I need to refer to the namespaces with cards from my-app.cards

grav12:12:12

Figwheel did it automatically