Fork me on GitHub
#lein-figwheel
<
2016-06-29
>
miguelb16:06:47

When using a SassWatcher (like in the wiki) is there way to get feedback? I think my errors are getting swallowed

miguelb17:06:12

nm, not a figwheel issue

venantius20:06:15

I’m trying to hook a clojurescript frontend up with a rails backend

venantius20:06:21

this is a terrible thing to do in the first place, I know

venantius20:06:48

I can get everything working if I compiled to public/ but if I try compiling to app/assets I get all sorts of errors on load

venantius20:06:59

in particular:

base.js:66 Uncaught TypeError: Cannot read property 'CLOSURE_UNCOMPILED_DEFINES' of undefined
cljs_deps.js:1 Uncaught TypeError: goog.addDependency is not a function
 Uncaught TypeError: goog.require is not a function
 Uncaught TypeError: goog.require is not a function

venantius20:06:02

anyone have any thoughts?

venantius20:06:10

I should note that all of this works just fine on the actual figwheel server (i.e. localhost:3449)

venantius20:06:18

but if I try running it against the actual rails server it is awful

bhauman21:06:22

@venantius: it looks like you aren't able to load your main :output-to target

venantius21:06:51

I guess what confuses me is that base.js is actually loading

venantius21:06:58

which would only happen if my app.js was loading

venantius21:06:08

but app.js obviously defines CLOSURE_UNCOMPILED_DEFINES

venantius21:06:14

and so I can’t explain why it’s not visible to base.js

bhauman21:06:37

can you verify that app.js is loading and it's contents?

venantius21:06:24

the only assumption I have is that it has something to do with the rails asset pipeline

venantius21:06:32

but I can’t for the life of me figure out what

venantius21:06:05

for what it’s worth, in the short term I’m just shoving it in public and running with that since everything seems to work fine that way

bhauman21:06:36

That's a much better solution if you want live reloading

venantius21:06:52

I just hate having to say “I don’t know why this doesn’t work” 😛

bhauman21:06:56

your gonna compile advanced and deploy, the minified asset anyway

venantius21:06:16

in this case actually we’re not going to compile advanced for deployment, it’s an internal-only tool so we don’t care too much about load performance

venantius23:06:55

next question

venantius23:06:01

I’m working on adding some foreign-libs

venantius23:06:11

I guess this is more of a general clojurescript question