Questions tagged [cljs-ajax]
8 questions
2
votes
0 answers
Getting error "Unable to resolve module xmlhttprequest" while using react-native and cljs-ajax
I am using re-natal along with cljs-ajax, according to https://github.com/JulianBirch/cljs-ajax/blob/master/docs/faq.md#react-native-why-does-bundling-fail-on-my-compiled-project
"react-native": {
"xmlhttprequest": false
}
By adding these lines…

anish
- 1,035
- 4
- 13
- 27
0
votes
0 answers
Series of Uncaught Type Errors: "xxxx" is not a function in JavaScript compiled from ClojureScript in Brave Browser
I'm following code examples from the book Web Development with Clojure, 3rd Edition. Currently running through the examples for using ClojureScript to create a single page application with Reagent and Ajax. The compiled Javascript runs fine until I…

hrestey
- 3
- 2
0
votes
1 answer
"Unknown named module xmlhttprequest" in clojurescript react-native project using re-natal
In existing project created using re-natal added [cljs-ajax "0.8.0"] and then added following lines in my package.json…

anish
- 1,035
- 4
- 13
- 27
0
votes
1 answer
Making an AJAX call when hosting on Localhost for HTTP-Kit
I am trying to make a front end and HTTP-Kit backend website. I ran into a lot of trouble with getting a response from the HTTP-Kit from within the web browser. When I access 'http://localhost:8080 from my we browser using HTTP-Kit webserver it…

phlie
- 1,335
- 3
- 10
- 19
0
votes
1 answer
How to do a Hoplon CLJS Server or AJAX Call
I am using Hoplon to create a fairly simple site and an stuck on the AJAX part. In the past I have used Castra as the backend but since it is no longer maintained I have switched to a normal LuminusWeb backend. I am in need of making a call to the…

phlie
- 1,335
- 3
- 10
- 19
0
votes
0 answers
devtools.core not found after including cljs-ajax
I've set up a new Reagent project with lein new reagent-frontend serverless-todo-front-cljs
After I include cljs-ajax and run lein figwheel I get an error:
No such namespace: devtools.core, could not locate devtools/core.cljs, devtools/core.cljc, or…

Kaj Ström
- 71
- 5
0
votes
1 answer
How to make a GET request with cljs-ajax to a source outside my server
I'm trying to make a simple GET request with clojurescript using cljs-ajax to a resource outside my server. My code core.cljs looks like this:
(ns btc-data-miner.core
(:require [clojure.browser.repl :as repl]
[ajax.core :refer [GET…

Pedro Henrique
- 601
- 6
- 17
0
votes
1 answer
Getting a blob with cljs-ajax
I am trying to read my ajax response as a blob.
The response is present, and can be read with
:response-format ajax.edn/edn-read
for example, but it is in fact an image and I need it as a blob to serve as an

Peter
- 47,963
- 46
- 132
- 181