Fork me on GitHub
#hyperfiddle
<
2023-03-19
>
adamfrey19:03:23

today working on some more recent electric git shas I've been seeing

hyperfiddle.electric-jetty-adapter: Websocket handler failure
clojure.lang.ExceptionInfo: Unable to resolve symbol: datascript.core/transact!
which is a bit confusing, since that var should definitely exist. Other times it will be a different error complaining that the first var in my ns doesn't exist:
(defonce !conn #?(:clj (d/create-conn {}) :cljs nil)) ; database on server
but yet,
Unable to resolve symbol: <...>/!conn
this error occurs when I load localhost:8080 in my browser for the first time after starting the compiler build The shas I've see it on are: eb959daf49bc0b26feee613453dce27ae3375314 ce7da1b0859da24758dbfb81cf0ae7a299cc7b2a b3b8d2e823f71e5416d0a93a94c405d5e2a8490e has anyone else seen this?

2
Dustin Getz20:03:26

could you be missing an e/client or e/server?

adamfrey20:03:05

I'll verify by commenting out most of my app. I do think what I have right is mostly just a couple tweaks to the starter app todo list.

Dustin Getz20:03:05

push it and i will clone and take a look

adamfrey20:03:48

https://github.com/AdamFrey/electric-starter-missing-symbolclj -A:dev -X user/mainlocalhost:8080 if you don't see the error on the first time, restart the server and then load the page again

👀 2
Dustin Getz20:03:42

I repped, investigating

Dustin Getz21:03:59

I solved it, you are going to be unhappy

Dustin Getz21:03:34

user.cljs, change (ns user ^:dev/always to (ns ^:dev/always user

Dustin Getz21:03:44

this one is on us, we had it backwards in the starter app for a bit

Dustin Getz21:03:22

you even made a fine effort to upgrade your fork of the starter app, including when you bumped to master, somehow realizing to add ring-basic-authentication/ring-basic-authentication {:mvn/version "1.1.1"} to your app which is missing from the starter app currently

adamfrey23:03:44

Making mistakes with clojure metadata placement: an intractable problem? I always have a hard time remembering where it should go. Thanks for looking into this for me. I’ll apply the fix when I get back home.

🙂 2