cljs-dev

ClojureScript compiler & std lib dev, https://clojurescript.org/community/dev
igrishaev 2020-09-19T12:09:56.003100Z

Hi! I'm using krell and got a problem with the @react-native-community/async-storage module. When importing it with (js/require "...") , I'm getting a nil value. Neither (:require ...) works in my ns declaration. I've tried the :language-out :es6 option in my deps.edn file with no success.

igrishaev 2020-09-19T12:10:21.003500Z

At the same time, other RN modules such "@react-navigation/stack" work fine.

igrishaev 2020-09-19T12:12:18.004700Z

I may guess, the problem is that async-storage exports a default const class, that's what makes it different to another modules.

igrishaev 2020-09-19T14:08:43.005900Z

sorry, my bad: the namespace was not a part of the build, and thus the async-storage module was not in npm libs