cljsrn

Nim Sadeh 2023-08-02T03:53:46.965769Z

I am running into days of trouble getting started with Krell and React native. I am currently stuck trying to import components from a JavaScript file and getting that the output of the js/require statement is nil (which sometimes destroys my entire repl connection and I have to restart it). I verified that the path is correct - I am just trying to construct the setup of the Krell demo video which is unfortunately not accompanied by an example repo. Is there anyone who is available to help get this setup? It's been quite a nightmare frankly

joshmiller 2023-08-04T18:17:12.431249Z

@nnnsadeh Note the last sentence here about the path for your JS components: https://github.com/joshuamiller/react-native-template-cljs-krell-storybook#workflow

joshmiller 2023-08-04T18:18:06.956439Z

It’s not well-documented in Krell, but the path is from the CLJS compilation working directory, not wherever in your source hierarchy you’re requiring that specific JS

Nim Sadeh 2023-08-04T18:27:59.622129Z

Yea I was following that as well

Nim Sadeh 2023-08-04T18:28:39.578139Z

Thanks for letting me know though, and for putting the repo together. I ended up with shadow and expo, got it to work faster

👍 1
Nim Sadeh 2023-08-02T11:40:26.492569Z

Amazing, thank you! I’ll give it a try this evening when I get back to my cljs work

yunior 2023-08-02T06:14:47.892029Z

Hi. I was trying to use Krell + Storybook as well but at some point I started from scratch in another repo to make Storybook + clojurescript (with shadow-cljs) work first and then go back to include Krell in that repo. I saw your previous comment and decided to push it to github and share the repo with you and maybe it can help you because I feel your pain too. This is the repo: https://github.com/yalayo/storybook-cljs-example and maybe we can get into a call and try to make it work together.