I have a very minimal project using figwheel-main and devcards. I'm using npm versions of react and react-dom, as well as the Figwheel {:auto-bundle :webpack} option.
Simply loading my single main.cljs file with a (:require [devcards.core]) results in the following error in the browser:
Error: create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.
I have a very minimal project using
figwheel-main
anddevcards
. I'm using npm versions ofreact
andreact-dom
, as well as the Figwheel{:auto-bundle :webpack}
option.Simply loading my single
main.cljs
file with a(:require [devcards.core])
results in the following error in the browser:Here's the entire
main.cljs
:Here's my entire
deps.edn
:Here's my entire build file,
devcards.cljs.edn
:I don't get the error unless I
:require
devcards.core
. Thismain.cljs
, with a regularreagent.dom/render
, works fine: