This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-06-01
Channels
- # announcements (7)
- # beginners (30)
- # boot (6)
- # calva (24)
- # cider (8)
- # clj-kondo (8)
- # cljs-dev (16)
- # cljsrn (8)
- # clojure (60)
- # clojure-italy (19)
- # clojure-mexico (6)
- # clojure-nlp (2)
- # clojure-uk (11)
- # clojurescript (36)
- # datomic (11)
- # hoplon (1)
- # juxt (2)
- # kaocha (1)
- # keechma (13)
- # nrepl (1)
- # off-topic (51)
- # reagent (7)
- # rewrite-clj (17)
- # robots (7)
- # shadow-cljs (2)
- # sql (4)
- # testing (1)
- # tools-deps (11)
- # vim (12)
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?Yes, this file has moved to Server.js
The upgrade to 31.0 is pretty tricky as react 0.57 breaks advanced compilation too
You'll need to patch the bundler - there's some info around on github on how to do this...
@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
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
React navigation works for me.
https://docs.nativebase.io/Components.html#Drawer <-- anyone got an idea on how to get that working?