cljsrn

https://github.com/drapanjanas/re-natal | https://github.com/drapanjanas/re-natal/wiki/FAQ | https://github.com/condense/mercury-app/wiki | https://github.com/seantempesta/expo-cljs-template/ https://www.npmjs.com/package/create-expo-cljs-app
pez 2020-05-26T06:27:07.211500Z

@olivergeorge, thanks, that got me a bit further. Now I got an error about the file not being found, which also gave me some hint about where it looked for the file. However, fixing the path and making a new clean build brings me back to where no image is rendered and no error messages anywhere. Truly odd.

pez 2020-05-26T06:28:58.212500Z

@thheller with shadow-cljs I get back something that I imagine is a file descriptor when I evaluate the js/require at the REPL: Same with Figwheel.

thheller 2020-05-26T06:51:54.214100Z

@pez that is only true if the require was part of the initially loaded code. if you require something "new" from the REPL then it will be missing.

👍 1
dnolen 2020-05-26T12:56:31.217900Z

@pez you can debug the assets things pretty easily by looking at :output-dir/krell_assets.js

dnolen 2020-05-26T12:56:43.218300Z

either the paths are right or they're wrong - that's the only reason they wouldn't show up

pez 2020-05-26T14:21:00.219700Z

@dnolen that file looks fine afaict. Is there a Krell log file I can look at, similar to the figwheel server log?

dnolen 2020-05-26T14:25:29.220100Z

no

dnolen 2020-05-26T15:14:57.221Z

@pez the paths in that file should be relative paths to where your images are

dnolen 2020-05-26T15:15:55.222600Z

actually I guess those will be absolute? point is they have to be something that Metro can find

pez 2020-05-26T15:18:35.224400Z

The path is relative to to the krell_assets.js file itself. I’m not allowed to use absolute paths in the js/require.

dnolen 2020-05-26T15:19:29.225100Z

yes

pez 2020-05-26T15:19:33.225300Z

I’ll see if I can repro it in a public repo.

dnolen 2020-05-26T15:19:58.225800Z

that would help a lot - I haven't heard of anyone else having problems with assets - what platform? Linux / OS X?

pez 2020-05-26T15:21:17.227100Z

OS X. I’m thinking I am probably doing something wrong, but can’t see what myself. Public repro coming up later today. 😃

pez 2020-05-26T23:08:18.229900Z

@dnolen Of course it works in the new project... Which is here, fwiw. https://github.com/PEZ/awesome-krell-project The only difference from my other project is the project name, afaict. Some cache somewhere, like @olivergeorge suggested, maybe.