cemerick / austin

The ClojureScript browser-REPL rebuilt stronger, faster, easier.
510 stars 31 forks source link

can not execute inserted script #38

Closed LiFlash closed 10 years ago

LiFlash commented 10 years ago

When loading my page with the script generated by (browser-connected-repl-js) i get the following error in the js-console

ReferenceError: goog is not defined

I'm totally new to cljs (and js, that is), so please be patient if this is kind of a stupid question or the totally wrong place to ask.

sritchie commented 10 years ago

Make sure you put the script after your generated.js file in the HTML.

cemerick commented 10 years ago

Yes, this is a problem with misordering the scripts you include in your app's page.

LiFlash commented 10 years ago

Ok, I definitely read about the importance of the position I'm not sure if I really changed anything regarding the relative position of the inserted script. But it works now :)

Thanks guys. And btw: Thanks Chas and all other contributetrs for this great work. I really appreciate it, since web dev is a pain in many cases and this definitely makes kind of fun ;)