You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I wanted to experiment with adding NPM lib react-native-logs to my react-native shadow-cljs project, so I :
yarn'd it, created a new namespace
and added ["react-native-logs" :refer [logger]]
but nothing I did could get logger to appear in the REPL (loading file or namespace) in a way that made sense.
This is expected ✅ apparently given the way Metro works. It all worked perfectly if I used it from within the :app main namespace, or even required the new namespace from a linked one.
The issue being reported is cosmetic because it's not obvious to the user why the error is occurring and very unlike a Clojure ™️ REPL experience. If shadow-cljs could hint in this scenarios so others don't suffer the hours it took me 😅
From https://clojurians.slack.com/archives/C6N245JGG/p1659098445064339
So I wanted to experiment with adding NPM lib react-native-logs to my react-native shadow-cljs project, so I :
["react-native-logs" :refer [logger]]
but nothing I did could get
logger
to appear in the REPL (loading file or namespace) in a way that made sense.This is expected ✅ apparently given the way Metro works. It all worked perfectly if I used it from within the
:app
main namespace, or even required the new namespace from a linked one.The stacktrace you do get is
The issue being reported is cosmetic because it's not obvious to the user why the error is occurring and very unlike a Clojure ™️ REPL experience. If
shadow-cljs
could hint in this scenarios so others don't suffer the hours it took me 😅Some relevant versions:
The text was updated successfully, but these errors were encountered: