Fork me on GitHub
#shadow-cljs
<
2021-03-23
>
zendevil.eth02:03:15

I’m trying to load the following in my shadow repl:

(ns humboi.events
  (:require
   [re-frame.core :as rf :refer [reg-event-fx reg-event-db after reg-sub reg-cofx inject-cofx reg-fx]] 
   [reagent.core :as r]
   [re-frame.core :refer [subscribe dispatch]]
   [ajax.edn :as edn]
   [ajax.core :refer [json-response-format raw-response-format json-request-format] :as ajax]
   [day8.re-frame.http-fx]
   [cljs.core.async :refer [go]]
   ))
However, I’m getting this error:
1. Unhandled java.io.FileNotFoundException
   Could not locate day8/re_frame/http_fx__init.class, day8/re_frame/http_fx.clj
   or day8/re_frame/http_fx.cljc on classpath. Please check that namespaces with
   dashes use underscores in the Clojure file name.
why is the repl looking for java files? Why am I on a clojure repl? In the same repl, when I do (shadow/watch :dev) it works and the watch is running smoothly too.

Tuomas05:03:56

I think it's because the shadow process is a clojure process. In there you can start "watching" a build but if you want to connect to do it, you need to it via (shadow/repl :the-build) Are these of any help to you? https://shadow-cljs.github.io/docs/UsersGuide.html#build-repl https://shadow-cljs.github.io/docs/UsersGuide.html#_clojure_repl https://shadow-cljs.github.io/docs/UsersGuide.html#_nrepl_usage https://shadow-cljs.github.io/docs/UsersGuide.html#_editor_integration

zendevil.eth12:03:37

@UH9091BLY when I select the shadow option in cider, and try to run (shadow/watch :dev), I get No available cljs runtime

zendevil.eth12:03:34

I’m using react-native and yes the react-native app is open

zendevil.eth12:03:16

how to get the runtime when the build target is react native?

zendevil.eth12:03:25

nevermind I had to turn on debugging

👌 3
dpsutton15:03:03

i'm running shadow-cljs run shadow.cljs.build-report app report.html and getting an error:

Caused by:
NoSuchFileException: .shadow-cljs/release-snapshots/app/latest/goog.debug.error.js.map
I've tried created the build both after a compile and a release but get the same error. Project is :npm-module. Anyone ever see anything like this?

thheller15:03:33

@dpsutton build reports are only supported for :browser builds. doesn't make sense for :npm-module builds since they are "incomplete"

dpsutton15:03:57

makes sense. thanks @thheller