Clojurians
#cljsrn
<
2016-06-13
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

seantempesta08:06:08

So I tried upgrading to the new Reagent 0.6.0.rc-1 and I’m now getting this exception.

TypeError: Cannot read property '__SECRET_DOM_SERVER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED' of undefined
    at 
    at 
    at 
    at syncImportScripts (?

seantempesta08:06:26

has anyone else encountered this?

seantempesta08:06:23

that’s a great property name btw :slightly_smiling_face:

vikeri08:06:31

@seantempesta: Haven’t tried rc-1 yet. Still on alpha-2

seantempesta08:06:53

Well I’ve done something stupid and also upgraded react-native to 0.27.0, so now I’m not sure what’s causing the problem

vikeri08:06:52

@seantempesta: I’m on 0.27.0 without problems, react 15.1.0

vikeri08:06:18

Apart from the problem that NavigationExperimental is still broken in 0.27.0

seantempesta08:06:40

what’s broken about it?

seantempesta08:06:42

yeah, that’s pretty dumb

vikeri08:06:51

yep, how are you working with navigation atm?

seantempesta08:06:12

using react-native-router-flux

seantempesta08:06:27

and I think they are using NavigationExperimental atm

vikeri08:06:11

Alright, what does it add on top of vanilla navigationexperimental?

seantempesta08:06:57

I dunno, I tried using NavigationExperimental and was horribly confused.

seantempesta08:06:20

Tabs? Modals? Automatic Headers?

seantempesta08:06:12

I don’t really like it though, and am hoping to switch to https://github.com/wix/react-native-navigation

vikeri08:06:48

Ok! Tabs should be solved by NavigationExperimental eventually, headers was fairly easy to implement. Alright...

seantempesta09:06:18

Hmm, so it appears my error is being caused because react-dom-server is being loaded. But I specifically excluded it in my lein project dependencies. This looks right, right?

:dependencies [[org.clojure/clojure "1.7.0"]
                           [org.clojure/clojurescript "1.7.170"]
                           [reagent "0.6.0-rc" :exclusions [cljsjs/react cljsjs/react-dom cljsjs/react-dom-server]]

vikeri09:06:03

[reagent "0.6.0-alpha2" :exclusions [cljsjs/react
                                                     cljsjs/react-dom
                                                     cljsjs/react-dom-server]]

vikeri09:06:58

Have you created an empty file (ns cljsjs.react.dom.server)? And you also need another file (ns reagent.dom.server)?

vikeri09:06:58

Since you are excluding them you need to shim them.