I'm having a real hard time getting hoplon working 😞
What problems are you having?
I ran into this, but the workarounds posted aren't working for me: https://github.com/hoplon/hoplon/issues/274
I kept getting an error about cognitect.transit/writer, which I solved by adding [com.cognitect/transit-clj "1.0.329"] to my dependencies
Then it was Undefined nameToPath errors
I gave up trying to solve that. Now I'm back on the latest versions of stuff and trying to solve the "Bad dependency path or symbol: hoplon.app_pages.indexDOT_html" error
Are you trying to start a new project?
yup
I think there is a more recent template, I will try to find it but may take sometime, I in the middle of something right now.
thanks
I've used hoplon on past projects and loved it: https://github.com/amatus/gnunet-web/blob/master/build.boot https://github.com/amatus/tankputer/blob/master/build.boot
i'm also a contributor https://github.com/hoplon/hoplon/commits?author=amatus
https://clojurians.slack.com/archives/C08BDAPRA/p1646957308157349?thread_ts=1646955519.577489&cid=C08BDAPRA I think currently those are the best options to use as reference. I think there is very few people that still use boot and would recommend shadow-cljs.
do you think boot is causing issues?
That would be my first guess.
I keep wishing to have some free time to update hoplon docs/guides because I'm so grateful for all I learned from @micha and @alandipert but the wish was not granted yet 🤷
the install experience of boot is amazing, just drop it in ~/bin/ and you're done
at least shadow-cljs says it'll work with the nodejs packaged by my distro
i'll give it a shot
Let us know if it worked 😉
it works! as long as i don't update all the packages
updating just the ones with known vulnerabilities works
Which one did you use? Also what deps are causing problems when you try to update?
conduit, i just now noticed you posted 3
at first i deleted package-lock.json and ran npm i to try to fix something weird i did, then ran npx shadow-cljs watch app and didn't get any errors but it never started the http server on 8080 and i was very confused, and since a clean checkout was working i assumed that npm i broke something
now i need to figure out how to shove castra in here
Oh, npm deps, yeah, those are a pain. If I were starting a new project I would probably try to use pathom instead of castra because of data fetching, but I also like castra very much.
hrm, i need something that's more like an rpc
Yeah, that is the one. If you squint the mutations are rpc like (but using edn to describe operations instead of direct function calls), and the query side is more composable imho. But the most important thing is if the tool fits the project. If you know castra and think it is a good fit then you should go for it. hoplon
@micha @alandipert why have you forsaken us?