This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-04-08
Channels
- # announcements (13)
- # asami (9)
- # aws (1)
- # aws-lambda (1)
- # babashka (37)
- # beginners (70)
- # calva (19)
- # cider (23)
- # clara (10)
- # clj-kondo (15)
- # cljdoc (14)
- # clojure (3)
- # clojure-bay-area (1)
- # clojure-europe (40)
- # clojure-nl (3)
- # clojure-serbia (1)
- # clojure-uk (31)
- # clojuredesign-podcast (1)
- # clojurescript (9)
- # community-development (7)
- # data-oriented-programming (1)
- # datomic (44)
- # emacs (13)
- # figwheel-main (14)
- # fulcro (6)
- # jobs (6)
- # malli (15)
- # meander (7)
- # off-topic (74)
- # other-languages (1)
- # pathom (3)
- # portal (3)
- # re-frame (25)
- # reagent (6)
- # reitit (2)
- # reveal (1)
- # rewrite-clj (6)
- # ring (5)
- # shadow-cljs (11)
- # specter (7)
- # xtdb (7)
Are reader conditionals (`#?`) not possible to use with figwheel ? I'm getting:
[Figwheel:WARNING] Could not Compile src/parser/core.cljs line:477 column:5
Conditional read not allowed
475 (defn ^:export parse
476 [string]
477 #?(:cljs (clj->js (-parse string))
^---
478 :clj (-parse string)))
[Figwheel:SEVERE] java.lang.RuntimeException: Conditional read not allowed
Thanks! I just went through the https://clojure.org/guides/reader_conditionals page, but read cljc
as cljs
Excellent! Glad I didn’t start a PR 😅
Let me know if you need help testing anything!!
@bhauman Tested on a new app (will try on a larger existing one a bit later). I see many warnings in the terminal have successfully been resolved and the browser console warning is also resolved. The remaining warnings thrown (3 total)
• target/public/cljs-out/dev/figwheel/main/css_reload.cljc
- lines 32, 141 and 144
Example:
Tested the HMR and Live Refresh and these are working and the project is configured using autobundle + webpack