Fork me on GitHub
#cljsrn
<
2016-05-31
>
kenny02:05:26

@pesterhazy: Have you made any progress on RN 0.26.2 in BRN?

mynomoto02:05:57

@kenny: thanks! I was trying to use rum with perun and because of your tip about re-natal's hack now I can 😄

kenny02:05:27

This should be added to the docs 🙂

savelichalex05:05:48

@pesterhazy: and I’ve wasted too much when create archive for ios application and upload it to TestFlight)

kenny06:05:20

Has anyone gotten this error ReferenceError can’t find variable: __fbBatchedBridge when trying to connect your app to BRN? The package server is running and I have tried reloading the JS to no avail.

kenny06:05:30

@misha: You need to add dummy namespaces for sablono.core, sablono.compiler, cljsjs.react, and cljsjs.react.dom. Then add them to the exclusions for rum: [rum "0.9.0" :exclusions [cljsjs/react cljsjs/react-dom sablono]].

kenny06:05:55

Where sablono.compiler looks like this:

(ns sablono.compiler)

(defn compile-html
  [& content]
  (first content))

kenny06:05:07

See the support directory and the build.boot file.

misha10:05:51

@kenny: sweet, thanks

vikeri13:05:26

Anyone else having trouble with including images in re-natal?

vikeri13:05:07

I get Requiring unknown module ”./images/feed.png”… the strange thing is that I can include the cljs.png file just fine...

savelichalex13:05:35

@vikeri: make re-natal use-figwheel and restart your app

vikeri13:05:08

@savelichalex: Yeah I saw that...

debug15:05:29

Any mistake in this form?

(-> (js/window.fetch "") 
          (.catch #(js/console.warn (.-message %))) 
          (.then #(.json %)) 
          (.then (fn [data] (map #(aget % "url") data))))

plexus15:05:08

nothing that immediately jumps out...

plexus15:05:24

aget is intended to be used for arrays though, better use #(.-url %)

misha15:05:43

@debug any reason you are asking?

misha15:05:46

recently many dot-forms did not work for me because those required symbol instead of expression as a first argument in things like:

(.. (expr) -someAttr -anotherAttr)

misha15:05:39

so I used let, and it worked.

(let [s (expr)]
  (.. s -someAttr -anotherAttr)

debug15:05:40

The fetch call works from the browser, but similar one in cljs shows nothing

debug16:05:17

@plexus oh, thank you

misha16:05:53

@plexus: how do I get obj property by its name, if not like this (aget obj "attr name")?

plexus16:05:22

goog.object/get

plexus16:05:42

I know everyone is using aget for this, and it works. The thing is, it might stop working in any future release of clojurescript (not too likely but could happen), and it doesn't work in Clojure where aget will blow up if you pass it anything but a Java array

pesterhazy19:05:32

@savelichalex: continuous integration that pushes every commit to master to testflight is a total life-saver

pesterhazy19:05:37

@kenny: I'm making some progress, yes

savelichalex19:05:48

@pesterhazy: interesting, what are you use for ci?

pesterhazy19:05:00

@savelichalex: custom jenkins on a mac mini, using the fastlane suit of tools

pesterhazy19:05:48

Has anyone run into this problem with boot-react-native? clojure.lang.ExceptionInfo: Could not modify file - not found in fileset - main.out/goog/base.js

savelichalex19:05:56

how CI make archives 😕

pesterhazy19:05:32

fastlane allows you to push to testflight, using a tool called pilot

pesterhazy19:05:07

you can build the archive e.g. using xctool

kenny20:05:39

Was it not running for you?

kenny20:05:02

Ah this is related to ios. I haven’t tried ios yet.

kenny21:05:19

Example worked on Android for me. You need to be running boot 2.5.5 though. If you want to update to boot 2.6.0 you need to add a main.cljs.edn to the resources dir.

pesterhazy21:05:56

ah, yeah I did that in the PR

pesterhazy21:05:25

strange, the missing output-dir should have affected android as well

pesterhazy21:05:34

debugging boot is an art of its own

kenny21:05:09

@pesterhazy: Have you seen this error yet? ReferenceError can't find variable: __fbBatchedBridge when trying to connect your app to BRN? The package server is running and I have tried reloading the JS to no avail. I am getting this while trying to update RN. I think I am currently on 0.24.0 and getting this error.

pesterhazy21:05:12

that's a very common error

pesterhazy21:05:26

it means that something failed during javascript evaluation

pesterhazy21:05:55

probably you'll find some sort of JS somewhere before that error in the logs

kenny21:05:24

Wonderful.. Well the only thing that I am changing is the RN version so it must be something to do with that and BRN.

kenny21:05:03

Is it possible to get a better error message?

pesterhazy21:05:05

are you tailing the Android logs?

pesterhazy21:05:37

try boot dev --platform android in SimpleExampleApp