Fork me on GitHub
#cljsrn
<
2018-12-23
>
bhauman00:12:23

@bobby.harris that’s a type in the readme. that needs to be the main namespace of your clojurescript build

bhauman00:12:16

but actually I’m spinning up a new project and I’m having some difficulty with the bridge you may want to wait until I’ve sorted it out first.

bhauman00:12:53

OK actually it’s working fine, just got one of the arguments wrong

bhauman00:12:06

@bobby.harris I just fixed the typo in the readme

bobby.harris00:12:49

@bhauman thanks! I've got to the hello there screen, so progress! thanks! Working on the reload, which, at this point only seems to happen when i hit "rr" in the emulator. (I'm doing android on a chromebook)

bhauman00:12:05

your following the readme?

bobby.harris00:12:35

yes. let me start from scratch, i had some bumps...

bhauman00:12:54

specifically you’ve added (defn on-reload [] (goog/figwheelBridgeRefresh)) in your main ns

bobby.harris00:12:04

so I've done the readme twice now with the same result at the line: "Now we are ready to launch our ClojureScript application:"... I get an error about loading "goog/base.js Perhaps your project was cleaned"... So I'm thinking there is a missing step? Or we are supposed to go to the end before were ready to launch?

bhauman00:12:46

yeah theres a missing step! you need to run lein figwheel or start figwheel.main

bobby.harris00:12:19

no need for sorry! i think we need to have the project.clj before we are ready, though... no?

bhauman00:12:48

yes you need to start figwheel somehow, you only need a project.clj if you are using lein figwheel

bhauman00:12:43

@bobby.harris it is a bit finicky, the bridge library needs better errors to help folks understand what went wrong

bobby.harris00:12:39

@bhauman So I'm where i was before. I installed the project.clj made the changes to the main.cljs. I've tried it with autoRefresh true and false but still only update when I hit "rr" in the emulator, which, frankly is not a problem at all at this point, it's the first clojurescript stuff I could get going in the emulator at all, so kudos to you!.

bobby.harris00:12:21

One interesting thing.... the prompt in lein "Prompt will show when figwheel connects" continues to hang....

bobby.harris00:12:39

but code is getting recompiled.

bhauman01:12:18

So the phone isn’t loading or connecting to figwheel yet

bhauman01:12:08

Btw my train just arrived to Toronto so I’m a bit preoccupied

bobby.harris01:12:18

its an emulator. it is loading the code and loading updated code... but only when i refresh. Have a nice trip!