figwheel-main

figwheel-main http://figwheel.org
tianshu 2019-05-03T01:03:37.037700Z

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

tianshu 2019-05-03T01:06:14.038Z

The code is

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

(start-devcard-ui!)

tianshu 2019-05-03T01:41:58.038500Z

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

Steven Katz 2019-05-03T19:44:56.038900Z

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)

2019-05-03T22:37:59.039500Z

Anyone ever seen this error with figwheel.main?

2019-05-03T22:59:28.039900Z

Also getting this error: