This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-28
Channels
- # anglican (2)
- # announcements (2)
- # babashka (41)
- # babashka-circleci-builds (1)
- # beginners (45)
- # brompton (2)
- # calva (13)
- # cider (13)
- # clj-kondo (14)
- # cljsrn (6)
- # clojure (60)
- # clojure-europe (4)
- # clojure-nl (3)
- # clojurescript (1)
- # code-reviews (3)
- # conjure (2)
- # cryogen (5)
- # datomic (22)
- # fulcro (13)
- # graalvm (19)
- # introduce-yourself (1)
- # kaocha (2)
- # leiningen (2)
- # lsp (1)
- # malli (4)
- # meander (1)
- # music (1)
- # news-and-articles (2)
- # off-topic (17)
- # polylith (6)
- # practicalli (2)
- # react (15)
- # reactive (1)
- # reagent (8)
- # reitit (2)
- # releases (1)
- # rum (10)
- # shadow-cljs (6)
- # spacemacs (4)
- # sql (2)
- # tools-deps (4)
- # xtdb (21)
Hello - Following Krell's Reagent Tutorial ( https://github.com/vouch-opensource/krell/wiki/Reagent-Tutorial ) I've been able to run the app successfully. Now I'm trying to use https://github.com/rnmods/react-native-document-picker I installed it with
yarn add react-native-document-picker
cd ios
pod install
and I'm trying to import it with
(def DocumentPicker (.-default (js/require "react-native-document-picker")))
but there's this error...
console.error: Could not evaluate TypeError: undefined is not an object (evaluating 'require("react-native-document-picker").default')
I tried restarting the REPL, Metro and iOS Simulator.
I've also upgraded to the latest Krell 0.5.1, but it didn't help.
Any idea about why it doesn't work?of these files exist:
* target/test.js(.native|.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx)
* target/test.js/index(.native|.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx)
1 | module.exports = {
2 | krellNpmDeps: {
> 3 | "./test.js": require('./test.js') }
| ^
4 | };