This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-04-02
Channels
- # announcements (2)
- # aws (7)
- # babashka (47)
- # beginners (54)
- # biff (6)
- # calva (14)
- # clojure-europe (7)
- # clojure-germany (2)
- # clojure-japan (4)
- # clojure-norway (5)
- # datalevin (1)
- # deps-new (13)
- # helix (5)
- # hoplon (1)
- # hyperfiddle (12)
- # introduce-yourself (6)
- # joyride (1)
- # malli (2)
- # off-topic (21)
- # polylith (11)
- # re-frame (3)
- # reitit (8)
- # remote-jobs (1)
- # scittle (25)
- # shadow-cljs (20)
- # vim (19)
- # xtdb (4)
I "download" noUiSlider with
<!-- Import noUiSlider -->
<link rel="stylesheet" href="">
<script src=""></script>
But when I want to require it with '["nouislider$noUiSlider" :as slider]
, I get the the following error:
Could not find namespace nouislider$noUiSlider.
Any idea, why?And is there any way to import dependencies from Clojurians? Is there smth like jsdelivr but for Clojurians? Because I would like to use https://github.com/oliyh/martian in my Project
that is only possible if you include the source via a src="..." script tag and you need to include them in the right namespace dependency order
Ok, and is there something like this planned? Or can I easily compile such a project to static JS?
yes, you could compile but this is not how scittle is used. for that approach you should just use regular CLJS or shadow-cljs
Note that you don't really need jsdeliver but you can integrate sources straight from github, like this example: https://babashka.org/scittle/tictactoe.html
> Like js/noUiSlider
?
Using that, I get the error Uncaught TypeError: Cannot read properties of undefined (reading 'create')
My code is
(.create js/noUiSlider (.getElementById js/document "slider")
#js {:start [20 80] :connect true :range {"min" 0 "max" 100}})
By I import it...
<!-- Import noUiSlider -->
<link rel="stylesheet" href="">
<script src=""></script>
I'm getting a 404 for this one: https://cdn.jsdelivr.net/npm/[email protected]/dist/noUiSlider.js
yeah, this worked:
<!-- Import noUiSlider -->
<link rel="stylesheet" href="">
<script src=""></script>