Fork me on GitHub
#cljsrn
<
2019-06-01
>
Alex04:06:30

Today I opened my app that was bootstrapped with the expo-cljs-template. Expo told me the 26.0 SDK was deprecated and that I had to upgrade to 31.0+. I followed the upgrade guide at https://docs.expo.io/versions/latest/workflow/upgrading-expo-sdk-walkthrough/ to upgrade to 31.0 but am now seeing the following error when i try to lein figwheel, I get the following error:

Exception in thread "main" java.io.FileNotFoundException: node_modules/metro/src/Server/index.js (No such file or directory), compiling:(/tmp/form-init6292548234996203928.clj:1:73)
        at clojure.lang.Compiler.load(Compiler.java:7526)
        at clojure.lang.Compiler.loadFile(Compiler.java:7452)
        at clojure.main$load_script.invokeStatic(main.clj:278)
        at clojure.main$init_opt.invokeStatic(main.clj:280)
        at clojure.main$init_opt.invoke(main.clj:280)
        at clojure.main$initialize.invokeStatic(main.clj:311)
        at clojure.main$null_opt.invokeStatic(main.clj:345)
        at clojure.main$null_opt.invoke(main.clj:342)
        at clojure.main$main.invokeStatic(main.clj:424)
        at clojure.main$main.doInvoke(main.clj:387)
        at clojure.lang.RestFn.applyTo(RestFn.java:137)
        at clojure.lang.Var.applyTo(Var.java:702)
        at clojure.main.main(main.java:37)
Caused by: java.io.FileNotFoundException: node_modules/metro/src/Server/index.js (No such file or directory)
Following the stack trace, I can't find the node_modules/metro/src/Server/index.js file either (doesn't exist). Anyone come across this before?

danielneal05:06:51

Yes, this file has moved to Server.js

danielneal05:06:29

The upgrade to 31.0 is pretty tricky as react 0.57 breaks advanced compilation too

danielneal05:06:52

You'll need to patch the bundler - there's some info around on github on how to do this...

Alex14:06:12

@danieleneal Thanks a ton for pointing me to those issues. They helped me resolve my immediate issues. Posting direct links to those issues in case anyone else runs into them: https://github.com/seantempesta/expo-cljs-template/issues/74 (start here) https://github.com/seantempesta/expo-cljs-template/issues/73

Alex19:06:33

What are folks using for a router? I'm leaning towards React-Navigation as I don't have a lot of React Native experience and it looks pretty approchable

Oliver George21:06:19

React navigation works for me.

emil0r22:06:10

https://docs.nativebase.io/Components.html#Drawer <-- anyone got an idea on how to get that working?