Fork me on GitHub
#figwheel-main
<
2019-05-03
>
tianshu01:05:37

got errors when trying to use devcards with shadow-cljs.

Uncaught ReferenceError: React is not defined
    at system.cljs:321
    at system.cljs:321
core.cljs:117 Uncaught ReferenceError: React is not defined
    at core.cljs:117
    at core.cljs:117
core.cljs:71 Uncaught TypeError: devcards.system.start_ui is not a function
    at Function.cljs$core$IFn$_invoke$arity$1 (core.cljs:71)
    at Function.cljs$core$IFn$_invoke$arity$0 (core.cljs:64)
    at cards.cljs:7

tianshu01:05:14

The code is

(ns webapp.cards
  (:require [devcards.core :as dc
             :refer-macros [defcard start-devcard-ui!]]))

(start-devcard-ui!)

tianshu01:05:58

Oh, I need require cljsjs.react and cljsjs.react.dom

Steven Katz19:05:56

Is anyone using figmain integrated with cursive? I folowed the instructions here: https://github.com/bhauman/figwheel-main/blob/master/docs/docs/cursive.md But see this when the repl starts:

May 03, 2019 1:59:46 PM org.jline.utils.Log logr
WARNING: Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information)
Unable to detect a system Terminal, you must not launch the Rebel readline
from an intermediate process.
If you are using `lein` you may need to use `lein trampoline`."
Is this normal? (edited)

Alan Thompson22:05:59

Anyone ever seen this error with figwheel.main?

Alan Thompson22:05:28

Also getting this error: