This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-11-17
Channels
- # architecture (115)
- # asami (64)
- # aws (2)
- # babashka (65)
- # beginners (91)
- # calva (21)
- # clara (3)
- # cljdoc (5)
- # cljsrn (1)
- # clojure (331)
- # clojure-australia (15)
- # clojure-europe (16)
- # clojure-italy (7)
- # clojure-nl (8)
- # clojure-uk (10)
- # clojurescript (10)
- # conjure (4)
- # core-typed (6)
- # cryogen (12)
- # data-science (1)
- # datomic (9)
- # depstar (2)
- # emacs (1)
- # events (1)
- # figwheel-main (1)
- # fulcro (2)
- # graalvm (9)
- # helix (4)
- # java (45)
- # kaocha (4)
- # malli (14)
- # meander (4)
- # membrane (34)
- # mid-cities-meetup (6)
- # pedestal (3)
- # re-frame (7)
- # reitit (4)
- # shadow-cljs (4)
- # spacemacs (5)
- # sql (29)
- # tools-deps (22)
Requiring Chroma.js [1] results in a failure to eval the code, with an error that just says "undefined" [1] https://github.com/gka/chroma.js/
Minimal code:
(ns app.chroma
(:require
["chroma-js" :as cm]))
After compilation, refresh the browser and the console gives two errors as shown in the attached picture:
main.js:1672 An error occurred when loading app.chroma.js
env.evalLoad @ main.js:1672
(anonymous) @ main.js:1886
main.js:1673 undefined
env.evalLoad @ main.js:1673
(anonymous) @ main.js:1886
@zhuxun2 sorry that is not enough information for me to tell whats going on. how is cm
actually used?
@U05224H0W cm is not used at all. The inclusion itself is enough to result in error.