This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-20
Channels
- # beginners (27)
- # calva (32)
- # cider (9)
- # clojure (111)
- # clojure-spec (71)
- # clojure-uk (7)
- # clojurescript (22)
- # cursive (20)
- # devcards (1)
- # emacs (4)
- # fulcro (3)
- # hyperfiddle (3)
- # off-topic (8)
- # pathom (26)
- # planck (19)
- # quil (4)
- # re-frame (1)
- # reitit (43)
- # rewrite-clj (9)
- # shadow-cljs (13)
- # spacemacs (7)
- # uncomplicate (5)
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? :)