cljsfiddle icon indicating copy to clipboard operation
cljsfiddle copied to clipboard

What libraries are available?

Open DarrenN opened this issue 11 years ago • 3 comments

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?

DarrenN avatar Dec 05 '13 14:12 DarrenN

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.

jonase avatar Dec 05 '13 14:12 jonase

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.

DarrenN avatar Dec 05 '13 14:12 DarrenN

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]

rundavidrun avatar Jul 16 '14 22:07 rundavidrun