jonase / cljsfiddle

http://cljsfiddle.net
Eclipse Public License 1.0
93 stars 16 forks source link

What libraries are available? #10

Open DarrenN opened 11 years ago

DarrenN commented 11 years ago

Trying to load jayq with:

(ns DarrenN.external-js
  (:require [jayq.core :as j]))

And getting: Uncaught Error: goog.require could not find: jayq.core

Is there a list of which libs are available to CLJSFiddle?

jonase commented 11 years ago

Not well documented. Basically the cljs libraries that are found in project.clj:

and maybe a few others... I can add libraries that people like but jayq might be tricky because of the jquery dependency.

DarrenN commented 11 years ago

Ah thanks, that's very helpful - I wasn't sure how you were handling on the server side. My buddy @saolsen came up with a hack to pull in jQuery (http://cljsfiddle.net/fiddle/saolsen.external-js) straight into the browser.

rundavidrun commented 10 years ago

I'm trying to use goog.events and I'm getting "goog.require could not find: goog.events.EventHandler" Any thoughts on why this might happen?

Actually, now that I've looked into it, it appears that this require is causing the issue. [goog.graphics :as graphics]