[CLJS-762] "goog.require could not find: cljs_gwt.css" since compiler generates wrong code Created: 06/Feb/14 Updated: 08/Feb/14 Resolved: 08/Feb/14
The project for which the problem occurred is here https://github.com/hsestupin/cljs-gwt.
It was happened because of cljs/cljs_gwt/core.cljs is beginning with lines
And then ClojureScript compiler emits the following from previous 2 lines resources/public/js/cljs_gwt.js
therefore an error occurred. That's it.
|Comment by Francis Avila [ 06/Feb/14 4:15 PM ]|
There is no goog.provide("cljs_gwt.css") emitted because there is no file that provides that namespace. Your css.clj file is misnamed--it should be css.cljs, otherwise clojurescript won't see it. (Also it has unbalanced parens and an illegal set!, so it won't compile anyway.)
There are two minor issues that you did hit upon, though:
|Comment by Sergey Stupin [ 06/Feb/14 5:00 PM ]|
Thanks for explanation, it helps a lot.