This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-09
Channels
- # announcements (23)
- # asami (25)
- # babashka (38)
- # beginners (53)
- # calva (17)
- # clara (5)
- # clj-commons (1)
- # clj-kondo (18)
- # clojure (11)
- # clojure-europe (17)
- # clojure-france (1)
- # clojure-germany (5)
- # clojure-nl (2)
- # clojure-sg (4)
- # conjure (3)
- # deps-new (6)
- # fulcro (16)
- # off-topic (46)
- # pedestal (11)
- # react (2)
- # reagent (5)
- # reclojure (7)
- # rewrite-clj (1)
- # sci (18)
- # shadow-cljs (75)
- # sql (3)
- # xtdb (12)
Hey, I'm trying to compile scittle.reagent
using the bb prod
command. When I try to import the js file I get the following error:
Uncaught TypeError: Cannot read property 'h' of undefined
at scittle.reagent.js:40
at scittle.reagent.js:65
(anonymous) @ scittle.reagent.js:40
(anonymous) @ scittle.reagent.js:65
If I replace the prod js file with the CDN version (https://cdn.jsdelivr.net/npm/[email protected]/dist/scittle.reagent.js) it does work. bb dev
also works.
Clojure: 1.10.3.986
Node: v16.10.0
NPM: 7.24.0
Babashka: v0.6.2
Environment: Pop_OS! Linux
My end goal is to create my own plugin but I wanted to compile reagent as a test.
Any ideas?@kevin.van.rooijen you need to include scittle in the HTML first
and you cannot mix locally compiled with CDN assets, you have to use either all of the one or the other
the names in advanced compilation change globally, so you get weird issues of you mix those
Pretty obvious issue. I guess I didn't think of it because of them being separate files
does edamame support setting a :default
reader? Reading over https://github.com/borkdude/edamame/blob/643e3e1962d6eec0cf54356b9f7f6a9f28e88086/src/edamame/impl/parser.cljc#L375-L381 I don’t think it does. Should it maybe consider https://cljs.github.io/api/cljs.reader/STARdefault-data-reader-fnSTAR or take a :default
key like https://cljs.github.io/api/cljs.reader/read?