ERROR - required "singult.coffee" namespace never provided via noir-cljs

77 views
Skip to first unread message

devnewb

unread,
Jul 30, 2012, 8:09:30 AM7/30/12
to c2-...@googlegroups.com
Hi guys.

I am trying to plug C2 into my Noir cljs driven web app, using the noir-cljs auto compile project.clj settings.  So probably because I am not using 'lein cljsbuild once' it looks like my dependencies are not pulled in for me.

I get 'ERROR - required "singult.coffee" namespace never provided'.

Is there any reason to think I can't eventually get C2 to work in my noir app doing cljs compilation the way it is done by default with noir-cljs ?

Thanks!

devnewb

unread,
Jul 30, 2012, 8:23:52 AM7/30/12
to c2-...@googlegroups.com
I just spotted this is the same problem as mentioned in the following thread : https://groups.google.com/forum/#!topic/c2-cljs/72vJa0K9SQk

Though it seems that thread was never resolved at least on record.

Thanks.

Kevin Lynagh

unread,
Jul 30, 2012, 12:04:53 PM7/30/12
to c2-...@googlegroups.com
Singult's JavaScript needs to be accessible to the ClojureScript compiler.
This happens automatically when you use lein cljsbuild because of a directory convention.
I'm not familiar with how Noir compilation works, but you need to pass to the ClojureScript compiler the option:

  { :libs ["singult.js"]}


--
You received this message because you are subscribed to the Google Groups "C2-cljs" group.
To unsubscribe from this group, send email to c2-cljs+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Kevin Lynagh
Keming Labs
http://keminglabs.com
888.502.1042

Reply all
Reply to author
Forward
0 new messages