This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-29
Channels
- # aleph (3)
- # announcements (29)
- # babashka (99)
- # beginners (30)
- # calva (46)
- # cider (9)
- # clara (1)
- # cljsrn (4)
- # clojars (10)
- # clojure (41)
- # clojure-dev (4)
- # clojure-europe (45)
- # clojure-nl (3)
- # clojure-norway (13)
- # clojure-uk (5)
- # clojurescript (61)
- # community-development (11)
- # cursive (10)
- # data-science (1)
- # events (1)
- # fulcro (17)
- # graphql (1)
- # gratitude (1)
- # holy-lambda (1)
- # jobs (4)
- # jobs-discuss (5)
- # meander (22)
- # off-topic (50)
- # pedestal (3)
- # re-frame (3)
- # reagent (3)
- # reitit (82)
- # releases (2)
- # rewrite-clj (14)
- # shadow-cljs (3)
- # spacemacs (14)
- # tools-deps (7)
- # xtdb (33)
Hi! I have two compilation targets: :app (:react-native) :web (:browser) :app then goes to expo which compiles for ios, android and web Everything works like a charm. The problem is when I'm trying to use some components from an :app (react native components) in :web target, I'm getting errors like:
Errors encountered while trying to parse file
node_modules/react-native/index.js
{:line 14, :column 7, :message "cannot use keyword 'typeof' here."}
I do not quite understand what shadow-cljs target :react-native
is doing, then what expo does to make it's working on the web, so it's hard for me to understand what I'm doing wrong. Did someone have a similar setup? Or maybe there are examples / blog posts about shadow-cljs/RN/web?
Thank you@rudenkoco react-native packages are not directly usable in the browser so you cannot import those packages in a :browser
build