This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-01
Channels
- # announcements (3)
- # babashka (17)
- # beginners (163)
- # bristol-clojurians (1)
- # calva (18)
- # chlorine-clover (17)
- # clj-kondo (13)
- # cljs-dev (50)
- # cljsjs (3)
- # cljsrn (13)
- # clojure (218)
- # clojure-dev (5)
- # clojure-europe (9)
- # clojure-italy (10)
- # clojure-nl (8)
- # clojure-uk (107)
- # clojurescript (25)
- # conjure (163)
- # cursive (63)
- # data-science (9)
- # datomic (38)
- # docker (1)
- # figwheel (34)
- # figwheel-main (3)
- # fulcro (15)
- # graalvm (1)
- # helix (12)
- # jobs (3)
- # juxt (5)
- # kaocha (3)
- # lein-figwheel (2)
- # leiningen (6)
- # luminus (2)
- # malli (1)
- # meander (12)
- # nrepl (4)
- # rdf (2)
- # re-frame (2)
- # reagent (7)
- # reitit (5)
- # remote-jobs (2)
- # rum (1)
- # shadow-cljs (65)
- # spacemacs (27)
- # tools-deps (18)
- # vim (19)
- # xtdb (2)
@thheller Hi thomas, I am trying to use framer
with your excellent shadow-cljs library in a reagent application. When I try to import the module. I get this error. Do you know why this might be the case. I tried googling first but couldnt get an answer
Compilation failed!
Closure compilation failed with 1 errors
--- node_modules/framer/build/framer.js:2
Class names defined inside a function cannot be reassigned.
here is the component
(ns
(:require [slack.views :refer [nav channel]]
["framer" :as f]))
@vishal.gautam framer compiled fine for me. which version do you use? shadow-cljs and framer?
@thheller I was using older version of shadow-cljs, Then I upgraded to latest version on package.json ie. "shadow-cljs": "2.8.109"
, deleted node_modules, reinstalled everything and restarted the server, and I still get this error. Framer I am using this version: "framer": "1.1.7"
.
I am using shadow-cljs.edn
only. Okay that did the trick! Danke! 😉
Hey, was hoping to get some help. I'm trying to use the react-particles-js library with a reagent/re-frame project, I can get it to display, but the interactivity/hover isn't working. Was wondering if there is something glaringly obvious I'd missed, pretty new to this. This is the element in question:
[:> Particles
{:particles {:number {:value 200
:density {:enable true
:value_area 1000}}}
;; This bit doesn't work:
:interactivity {:detect_on "canvas"
:events {:onhover {:enable true
:mode "repluse"}}}]
Thanks for your help