This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-26
Channels
- # aws-lambda (15)
- # babashka (7)
- # beginners (124)
- # calva (7)
- # cider (19)
- # clj-kondo (26)
- # clojure (261)
- # clojure-australia (3)
- # clojure-dev (10)
- # clojure-europe (45)
- # clojure-nl (4)
- # clojure-uk (6)
- # clojurescript (10)
- # datomic (7)
- # depstar (7)
- # emacs (11)
- # fulcro (41)
- # graalvm (48)
- # helix (1)
- # honeysql (17)
- # inf-clojure (7)
- # introduce-yourself (3)
- # jackdaw (2)
- # lsp (36)
- # malli (2)
- # meander (2)
- # membrane (1)
- # missionary (11)
- # off-topic (17)
- # pathom (83)
- # polylith (15)
- # re-frame (31)
- # reagent (42)
- # sci (35)
- # shadow-cljs (13)
- # spacemacs (13)
- # sql (19)
- # timbre (3)
- # tools-deps (77)
I’m trying to use this library: https://kiarash-z.github.io/react-modern-calendar-datepicker/docs/getting-started
and I have [react-modern-calendar-datepicker *:as* DatePicker]
in require
(using reagent) and tried using like [:> DatePicker] and [DatePicker] but getting error:
react-dom.development.js:68 Warning: Can’t perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.
and template.cljs:277 Uncaught Error: Assert failed: Invalid Hiccup form: [#js {:Calendar #object[F], :default #object[global], :utils #object[T]}] (in humboi.core.raise_page) respectively
How to use DatePicker?
Use this table to work out what your require should look like https://shadow-cljs.github.io/docs/UsersGuide.html#js-deps
Thank you. This worked with :default
However, when I use this import 'react-modern-calendar-datepicker/lib/DatePicker.css';
like ["react-modern-calendar-datepicker/lib/DatePicker.css"]
I get:
Failed to inspect file
/Users/prikshetsharma/Desktop/humboi/node_modules/react-modern-calendar-datepicker/lib/DatePicker.css
it was required from
/Users/prikshetsharma/Desktop/humboi/src/cljs/humboi/core.cljs
Errors encountered while trying to parse file
/Users/prikshetsharma/Desktop/humboi/node_modules/react-modern-calendar-datepicker/lib/DatePicker.css
{:line 1, :column 1, :message "primary expression expected"}