This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-25
Channels
- # aleph (1)
- # beginners (72)
- # boot (3)
- # cider (28)
- # cljs-dev (193)
- # cljsrn (11)
- # clojure (73)
- # clojure-brasil (3)
- # clojure-gamedev (2)
- # clojure-russia (6)
- # clojure-spec (30)
- # clojure-uk (26)
- # clojured (1)
- # clojurescript (32)
- # code-reviews (9)
- # core-async (4)
- # datascript (5)
- # datomic (9)
- # dirac (38)
- # fulcro (23)
- # garden (11)
- # leiningen (1)
- # luminus (11)
- # lumo (6)
- # off-topic (17)
- # quil (2)
- # re-frame (2)
- # reagent (3)
- # ring (3)
- # shadow-cljs (12)
- # spacemacs (4)
- # sql (2)
- # unrepl (85)
- # vim (3)
looks like dirac
use js/document
ReferenceError: document is not defined
at Object.clojure.browser.repl.bootstrap.goog.writeScriptTag__ (repl.cljs?rel=1519577273852:149)
at clojure.browser.repl.bootstrap.goog.writeScriptTag_ (repl.cljs?rel=1519577273852:165)
at Object.goog.importScript_ (base.js:951)
at Object.goog.writeScripts_ (base.js:1394)
at goog.require (base.js:706)
at figwheel-bridge.js:215
at syncImportScripts (figwheel-bridge.js:134)
at importJs (figwheel-bridge.js:148)
at figwheel-bridge.js:210
at syncImportScripts (figwheel-bridge.js:134)
this is because to make figwheel work in react native there's a figwheel_bridge.js
do a lot of shim work, so the error stack looks meaningless.
does dirac
require the JS runtime which it works with, must be a browser environment?
I think you only need to instruct dirac to connect to javascript context in your React Native “shell”
the problem could be that the shell has pretty old version, so the debugger protocol between dirac devtools (devtools) and shell does not match
at least that was my problem when I tried it a few years ago, RN shell was 6+ months old
maybe terminology changed? I don’t know - back in the old days, electron-shell was that componet in electron which was wrapping chrome engine
actually it is this subproject: https://github.com/electron/libchromiumcontent
in react native, although you can open a devtool for logging and debugging, you can't evaluate javascript code, if you try to do alert
, it will alert in the chrome, not the app. will this still be a problem for cljs repl, if dirac
install success on RN?
In general you want run javascript context in your RN app with remote debugging enabled and then connect to it with dirac (running in your browser as extension). If both RN js context and dirac versions roughly match, then they should be able to talk and you should be able to issue cljs commands which will compile to javascript which exectutes in your RN js context. This will allow you to do everything javascript code can do in that context.,