This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-23
Channels
- # announcements (5)
- # beginners (14)
- # bigdata (1)
- # calva (13)
- # cider (10)
- # clj-kondo (53)
- # cljs-dev (1)
- # cljsrn (12)
- # clojure (67)
- # clojure-uk (8)
- # clojuredesign-podcast (3)
- # clojurescript (53)
- # duct (4)
- # emacs (1)
- # events (1)
- # figwheel-main (5)
- # fulcro (9)
- # graalvm (68)
- # graphql (3)
- # joker (3)
- # juxt (4)
- # off-topic (32)
- # other-languages (1)
- # pathom (35)
- # re-frame (6)
- # rum (1)
- # shadow-cljs (52)
- # spacemacs (3)
- # sql (10)
- # tools-deps (15)
How come I get an error with cljs-http not found after adding it to project.clj and running lein deps, in a re-natal project. Am I missing something, can’t I use cljs-libraries in re-natal for some reason?
No such namespace: cljs-http.client, could not locate cljs_http/client.cljs, cljs_http/client.cljc, or JavaScript source providing "cljs-http.client" (Please check that namespaces with dashes use underscores in the ClojureScript file name)
it happened once I used it in my api namespace
...(:require [cljs-http.client :as http]...
Figwheel: Stopped watching build - ios
Figwheel: Reloading build config information
Figwheel: Cleaning build - ios
Figwheel: Watching build - ios
Figwheel: Cleaning build - ios
Compiling build :ios to "target/ios/index.js" from ["src" "env/dev"]...
Failed to compile build :ios from ["src" "env/dev"] in 10.345 seconds.
---- Could not Analyze src/events_fe/api/auth_api.cljs ----
No such namespace: cljs-http.client, could not locate cljs_http/client.cljs, cljs_http/client.cljc, or JavaScript source providing "cljs-http.client" (Please check that namespaces with dashes use underscores in the ClojureScript file name)
---- Analysis Error : Please see src/events_fe/api/auth_api.cljs ----
Figwheel: initial compile failed - outputting temporary helper application to target/ios/index.js
1. added it to dependencies in project.clj
2. required it 3. reloaded config from a cider repl 4. got error
cljs-http
does work with react-native as can be seen from the unrelated discussion above.
Maybe stop your REPL at the step 3. & start it again, so that it can pick up the dependency?
@U3SG7RX7A damn, it worked! thank you so much, it’s my first time dabbling with re-natal and also trying out cider repl for a change.
I thought I only needed to run reload-config, but I apparently needed to restart the whole repl