This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-03-25
Channels
- # admin-announcements (1)
- # aws (1)
- # beginners (52)
- # boot (78)
- # cider (22)
- # cljs-dev (1)
- # cljsrn (6)
- # clojars (23)
- # clojure (51)
- # clojure-austin (2)
- # clojure-china (2)
- # clojure-dusseldorf (2)
- # clojure-russia (101)
- # clojure-sg (2)
- # clojure-uk (2)
- # clojurescript (53)
- # core-logic (14)
- # cursive (1)
- # editors (4)
- # hoplon (324)
- # jaunt (1)
- # juxt (4)
- # leiningen (2)
- # mount (17)
- # off-topic (4)
- # om (15)
- # onyx (15)
- # parinfer (4)
- # proton (5)
- # re-frame (26)
- # reagent (24)
- # ring-swagger (1)
- # slack-help (5)
- # spacemacs (2)
- # untangled (10)
Hi all, newbie here. I just created a new project using re-natal. It works great when running in the IOS simulator but when I switch to my iPhone I get a "Error loading script, please check your config setup". I have updated AppDelegate.m to point to my Mac ip and called re-natal use-ios-device <myip>. Any ideas how to troubleshoot this?
Looking in the xcode console log it looks like it tries to load google closure
2016-03-25 11:36:42.137 [info][tid:com.facebook.React.JavaScript] Loading Closure base.
2016-03-25 11:36:42.137 [info][tid:com.facebook.React.JavaScript] Shimming require
2016-03-25 11:36:42.155 [error][tid:com.facebook.React.JavaScript] Error loading script, please check your config setup.
2016-03-25 11:36:42.168 [error][tid:com.facebook.React.JavaScript] { [TypeError: Network request failed]
line: 14392,
column: 21,
sourceURL: '' }
I think I found it. It still tries to load goog/base.js from localhost. Now I just have to figure out why...
I deleted index.ios.js and target/, called re-natal use-figwheel again and all of a sudden it worked. I must have missed something before. Sorry for the noise
@johannesgu: Yeah, I’ve hit that a couple of times myself. The order of operations is really important when making any changes to a react-native project.
lein clean ;; wipe everything
re-natal use-figwheel || lein prod-build ;; produces the index.ios and index.android files
lein figwheel ios ;; if in dev