Fork me on GitHub
#devcards
<
2019-04-20
>
Lu01:04:52

Hello! I just added devcards to my project, yet I can only see a blank screen with this error in the console: Uncaught ReferenceError: p is not defined at ioc_helpers.cljs:146. I am using figwheel-main:

{:id "devcards"
                                 :asset-path "/scripts/out"
                                 :main bar.foo.devcards.main
                                 :output-dir "public/scripts/out"
                                 :output-to "public/scripts/devcards.js"}
This my html:

<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1">
    <title>Devcards</title>
</head>
<body>
  <script src="/scripts/devcards.js"></script>
</body>
</html>
And this my main.cljs:
(ns bar.foo.devcards.main
  (:require
   [devcards.core])
  (:require-macros
   [devcards.core :refer [defcard reagent]]))

(defcard example
  (reagent [:div "show text"]))
What am I doing wrong? :)