Fork me on GitHub
#cljsrn
<
2020-05-25
>
Oliver George04:05:13

Krell sticks with the React Native convention of source file relative asset paths. (Re-natal was different and from memory encouraged a top level asset dir approach.)

pez19:05:20

I can't get the asset require to work whatever I try. Evaluating it in the REPL i get nil regardless what path I use, as long as it is relative (I get an error if I use an absolute path). I'm thinking I should get an error if I provide a relative path that doesn't resolve to a real file? And a file descriptor number if it resolves?

thheller20:05:55

asset requires don't work in the REPL since metro needs to provide them

thheller20:05:15

and that is only done on load

thheller20:05:23

(in shadow-cljs at least, not actually sure what krell does)

Oliver George21:05:16

@pez I had that at one point and a clean build fixed it. When I clean I delete ‘out’ and ‘.cpcache’.