Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Library doesn't work in cljs over react-native #12

Closed
VyacheslavMik opened this issue May 29, 2024 · 3 comments
Closed

Library doesn't work in cljs over react-native #12

VyacheslavMik opened this issue May 29, 2024 · 3 comments

Comments

@VyacheslavMik
Copy link

Hello! Thanks for your library.

I have an issue with this library in cljs that is used in a react-native project. When I require it I get an error: find-ns-obj not supported for target react-native, because of the following line

(create-ns 'exoscale.lingo.pred)

If I understand correctly this namespace is used only as a namespace for keywords. I think that a new mechanism in clojure will be more suitable. I mean :as-alias form in require - https://clojure.org/guides/learn/namespaces.

@mpenet
Copy link
Member

mpenet commented May 30, 2024

The weird thing is that this line was added to remove a warning in cljs context only. We don't need an alias for it, so I don't think as-alias would change anything really. In theory, nothing prevents usage of non existing namespaces for keywords, yet cljs is quirky apparently when it comes to this.

I'll check if removing this line makes any difference, if its removal just emits a warning I am fine with that.

@mpenet
Copy link
Member

mpenet commented May 30, 2024

Please try 1.0.4, hopefully it was fixed by #13

@VyacheslavMik
Copy link
Author

Please try 1.0.4, hopefully it was fixed by #13

It works! Thank you very much!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants