This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-22
Channels
- # beginners (240)
- # boot (23)
- # bristol-clojurians (3)
- # cider (101)
- # cljs-dev (52)
- # cljsrn (17)
- # clojure (212)
- # clojure-dusseldorf (2)
- # clojure-greece (2)
- # clojure-italy (9)
- # clojure-russia (1)
- # clojure-spec (91)
- # clojure-uk (33)
- # clojurescript (164)
- # community-development (23)
- # core-async (24)
- # core-logic (9)
- # cursive (18)
- # datavis (1)
- # datomic (119)
- # emacs (13)
- # events (1)
- # figwheel (2)
- # fulcro (86)
- # graphql (1)
- # immutant (5)
- # jobs-discuss (6)
- # leiningen (19)
- # lumo (46)
- # nyc (7)
- # off-topic (23)
- # parinfer (15)
- # pedestal (3)
- # planck (32)
- # re-frame (48)
- # reagent (75)
- # ring-swagger (13)
- # rum (32)
- # shadow-cljs (402)
- # spacemacs (5)
- # specter (3)
- # tools-deps (11)
- # unrepl (20)
- # vim (135)
- # yada (3)
Any one able to help me get this last piece across the line. https://github.com/GroundedSage/Rum-RN4W-starter
I'm stuck here
(mount-app)
(.registerComponent AppRegistry "main" (fn [] root-component-factory))
(.runApplication AppRegistry "main" (. js/document (getElementById "app"))))
I'm doing React Native for Web. So I am not sure whether the mount-app part works here.
This is the error I have been getting
module$node_modules$react_native_web$dist$exports$AppRegistry$index.js:3 Uncaught TypeError: Cannot read property 'id' of undefined
at Function.a.runApplication (module$node_modules$react_native_web$dist$exports$AppRegistry$index.js:3)
at Object.starter$browser$start [as start] (starter.browser.js:78)
at Object.starter$browser$init [as init] (starter.browser.js:85)
at (index):10
The mounting part I was following this https://glitch.com/edit/#!/react-native?path=src/index.js:7:42 and the Exponent template or Rum @roman01la
what error are you seeing @grounded_sage?
Code has been changed to look like this
(do
(mount AppRoot)
(.registerComponent AppRegistry "app" (fn [] root-component-factory))
(.runApplication AppRegistry "app" #js{:rootTag (. js/document (getElementById "root"))}))
Full repo is here. https://github.com/GroundedSage/Rum-RN4W-starter
what's mount
?
seeing it the code
sorry, I don't know anything about Rum
you're not making things easier for yourself by using multiple unusual pieces (RNW, shadow-cljs, Rum)
start with just plain React if you're familiar with that
also no advanced compilation
mount
was the code I pulled in from re-natal support.
All good I'll just stick to Reagent I think. Rum is more work than it is worth to make it work. I thought I was really close with using the other code from RN templates.
for all I know Rum may be great for this, but it requires a good understanding of all the components