This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-19
Channels
- # alda (1)
- # announcements (2)
- # babashka (14)
- # beginners (30)
- # biff (12)
- # clerk (2)
- # clj-kondo (18)
- # clj-on-windows (1)
- # clojure (98)
- # clojure-europe (9)
- # clojure-gamedev (4)
- # clojurescript (39)
- # conjure (1)
- # data-science (1)
- # emacs (25)
- # events (1)
- # fulcro (1)
- # hyperfiddle (13)
- # lsp (3)
- # malli (1)
- # membrane (10)
- # off-topic (12)
- # reagent (7)
- # scittle (21)
- # shadow-cljs (10)
anyone want to port this? https://github.com/enricoros/nextjs-chatgpt-app
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?could you be missing an e/client or e/server?
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.
push it and i will clone and take a look
https://github.com/AdamFrey/electric-starter-missing-symbol
• clj -A:dev -X user/main
• localhost:8080
if you don't see the error on the first time, restart the server and then load the page again
I repped, investigating
I solved it, you are going to be unhappy
user.cljs, change (ns user ^:dev/always
to (ns ^:dev/always user
this one is on us, we had it backwards in the starter app for a bit
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
here is the https://github.com/hyperfiddle/electric-starter-app/commit/a8810accfdd96f82eefc2d976645538223a88de9#diff-06a7049242ecf7dac4e22b30db9faa22ebae4e22e72d1bfbb916e03e3075e5c1 you would have needed to see, very unhelpfully labeled "upgrade electric"