When using a SassWatcher (like in the wiki) is there way to get feedback? I think my errors are getting swallowed
nm, not a figwheel issue
I’m trying to hook a clojurescript frontend up with a rails backend
this is a terrible thing to do in the first place, I know
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
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
<http://torch.localhost.airbnb.com/:44|torch.localhost.airbnb.com/:44> Uncaught TypeError: goog.require is not a function
<http://torch.localhost.airbnb.com/:44|torch.localhost.airbnb.com/:44> Uncaught TypeError: goog.require is not a function
anyone have any thoughts?
I should note that all of this works just fine on the actual figwheel server (i.e. localhost:3449
)
but if I try running it against the actual rails server it is awful
@venantius: it looks like you aren't able to load your main :output-to target
I guess what confuses me is that base.js
is actually loading
which would only happen if my app.js
was loading
but app.js
obviously defines CLOSURE_UNCOMPILED_DEFINES
and so I can’t explain why it’s not visible to base.js
can you verify that app.js is loading and it's contents?
yep
the only assumption I have is that it has something to do with the rails asset pipeline
but I can’t for the life of me figure out what
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
That's a much better solution if you want live reloading
yeah
I just hate having to say “I don’t know why this doesn’t work” 😛
your gonna compile advanced and deploy, the minified asset anyway
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
next question
I’m working on adding some foreign-libs
I guess this is more of a general clojurescript question