Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
75 views

Using math.js with clojurescript unsuccessfully. Please comment how to access the function of math.js with clojurescript correctly. Error lines 1. product (math/dot v1 v2)] 2. Ainv (math/inv A)] ...
madeinQuant's user avatar
  • 1,823
1 vote
2 answers
95 views

Using js-pytorch with clojurescript unsuccessfully. Please comment how to fix the installation issue of js-pytorch with clojurescript execute in calva-repl: (ns server.ros2 (:require ["js-...
madeinQuant's user avatar
  • 1,823
2 votes
3 answers
144 views

I like ClojureScript, but to interop between CLJS and Javascript is difficult. I would like to create a function that can perform date culculations in arbitrary units, such as the following. But this ...
hata's user avatar
  • 197
0 votes
2 answers
133 views

Currently I'm requiring using ["react-select" :default Select] in order to create a component: (def dropdown-standard (ra/adapt-react-class Select)) (this works perfectly) I want to access ...
Privisi's user avatar
1 vote
1 answer
156 views

I have been trying to implement a graph in clojurescript , I am using c3.js library for the implementation and it’s failing to render the graph , I earlier got errors wrt c3.generate(), but even after ...
developerAtHeart's user avatar
-1 votes
2 answers
117 views

Is there a way to create kafka consumers in a clojurescript app that I am trying to create. My kafka cluster is at AWS MSK which is configured to use SASL_SSL/IAM auths. And my client-side application ...
ctrl_dev's user avatar
0 votes
1 answer
563 views

I currently have 2 shadow-cljs projects with 2 different ways to manage their dependencies to npm libraries. One uses the default shadow-cljs.edn configuration :js-options {:js-provider :shadow}, we ...
Antoine's user avatar
  • 47
1 vote
1 answer
901 views

I am trying to install shadow-cljs in a MacOS Monterey 12.5. I am new to the Apple ecosystem, to npm, and Clojure/ClojureScript stack. This a new world for me. This is the project folder, as you can ...
Pedro Delfino's user avatar
1 vote
2 answers
2k views

I am new to Clojure and not a pro in Javascript. I am watching the free part of the course on Reagent. Following the instructions on the course's repo, after doing the git clone and the npm install, ...
Pedro Delfino's user avatar
0 votes
1 answer
1k views

how can I get the latest value of config in doSomething function? Do I need to put all the state values to a ref and then access it everywhere with the latest value? Is there a better/alternative way ...
kenanyildiz90's user avatar
0 votes
1 answer
144 views

I'm getting this error message when I compile code for production and deploy to server but not getting it locally. I'm stumped as to why I can't re-produce locally Uncaught TypeError: Cannot read ...
apiyo's user avatar
  • 103
2 votes
1 answer
337 views

I am trying to use react-native-swipe-list-view inside clojurescript. But I am having some trouble in converting documented js code in cljs code. Documentations: import { SwipeRow } from 'react-native-...
parvesh's user avatar
  • 458
1 vote
1 answer
1k views

I'm looking to modify some existing text in a web app, which I'm accessing with expressions like this: (.-innerHTML (.getElementById js/document "myElementId")) What I specifically want to ...
Mark Reed's user avatar
  • 96k
1 vote
1 answer
351 views

I’m a ClojureScript beginner and I am trying to connect my app to Metamask wallet. In the past I successfully did it on a pure JS project with the following code: import Web3 from "web3"; ...
Nicolas's user avatar
  • 11
0 votes
3 answers
736 views

I am trying to build on the Pedestal tutorial app available here. I am trying to add cljs functionality and trying to setup a unified clojurescript and clojure environment. My deps.edn file looks as ...
user3570501's user avatar
1 vote
1 answer
160 views

I'm trying to run the official example https://clojurescript.org/guides/webpack on windows and I get the following error when I execute it: Execution error (ExceptionInfo) at cljs.closure/run-bundle-...
Fabricio Cozzarolo's user avatar
4 votes
1 answer
249 views

I am trying to migrate ClojureScript tests from "Chrome Headless" to jsdom using Karma and shadow-cljs as test runners. The regular tests which require access to DOM or browser API work fine....
Valdermeyder Hussar's user avatar
0 votes
1 answer
147 views

How can you append to a local file using ClojureScript (running on Node)?
michaelrbock's user avatar
  • 1,320
0 votes
1 answer
145 views

You can't use ~ in paths for NodeJS functions because that's a bash-specific thing. So how do you get the path to a user's home directory in Clojurescript (on Node)?
michaelrbock's user avatar
  • 1,320
0 votes
1 answer
104 views

Using core.matrix in a ClojureScript project. For javascript interop I need aljabr as explained in https://github.com/mikera/core.matrix/wiki/Matrix-implementations After I try to specify the ...
Alessandro Solbiati's user avatar
2 votes
1 answer
308 views

I am doing the example project https://github.com/minimal-xyz/minimal-shadow-cljs-importing-npm to later add Photon dependency https://silvia-odwyer.github.io/photon/guide/using-photon-web/ and after ...
Fabricio Cozzarolo's user avatar
1 vote
1 answer
420 views

I'm calling a Javascript library and getting a Map Iterator back (which in Javascript you use with for ... in) How do I turn this into a ClojureScript sequence so I can call for on it?
interstar's user avatar
  • 27.5k
0 votes
1 answer
112 views

I'm having a strange problem with a bit of Clojurescript in my application. I pulled all the relevant pieces out into a small Leiningen Reagent application. Here's the relevant Hiccup: (defn current-...
jwh20's user avatar
  • 676
1 vote
0 answers
216 views

I would like to add a modified ProseMirror editor to a figwheel-main-based Clojurescript project. After setting up a small experimental project, I'm just trying to reproduce this nonfunctional editor ...
clartaq's user avatar
  • 5,382
1 vote
1 answer
304 views

How can I mimic this JavaScript inheritance in ClojureScript? class AccessController extends EventEmitter { static async create (db, options) { } static get type () { throw new Error('\'...
fbielejec's user avatar
  • 3,750
1 vote
1 answer
1k views

Is there a way in Clojurescript create an async function or a macro wrap a function into a Promise to simulate it? My current use-case is to replace the following function that takes a callback by its ...
Kineolyan's user avatar
  • 743
0 votes
1 answer
492 views

I am just getting started with Clojurescript. I wrote some clojurescript code to use the shared aws credentials file to initialize S3 client and list buckets . However my code does not work. (defn -...
user193116's user avatar
  • 3,568
1 vote
1 answer
296 views

Background: In mapbox-gl-js, while you can remove layers and features from a map (because the references are stored), you cannot do the same with markers. Instead one has to store the reference to ...
Jan's user avatar
  • 2,799
3 votes
2 answers
2k views

I'm trying to use a particular JavaScript framework which requires extending a base class to use it for application. Basically I want to do the following as idiomatic ClojureScript. class Foo ...
waechtertroll's user avatar
0 votes
1 answer
188 views

I have a error listener (set! (.-onerror js/window)(fn [message source lineno colno error]... like this on browser and it works well, but stacktrace and other fields are in JS. I would like it to be ...
user avatar
0 votes
1 answer
171 views

I cannot get CKEditor react component to work in ClojureScript project. When I try to use the component (ns simple.core (:require [reagent.core :as reagent] [re-frame.core :as rf] ...
MaDhAt2r's user avatar
3 votes
0 answers
209 views

I'm working on a thin wrapper around a js library and I want to dynamically generate variables from a list for use in other namespaces. e.g. Given a list of (:foo :bar :baz), I want to dynamically ...
Ahmed Almutawa's user avatar
0 votes
1 answer
270 views

I want to do real time audio processing in ClojureScript. The MDN documentation points me to the AudioWorkletProcessor Class, but from what I googled, there is no obvious way to inherit from a ...
Teresa Siegmantel's user avatar
1 vote
1 answer
552 views

I am new to clojure and clojurescript. I just to know how I can implement this library in clojurescript. This is the link to the library: https://react-day-picker.js.org/examples/basic I have ...
user avatar
2 votes
2 answers
1k views

I need to open a new tab using ClojureScript. (js/window.open "http://localhost/go/somewhere") I get the following error: Uncaught TypeError: window.open is not a function It doesn't help setting ...
Clarice Bouwer's user avatar
4 votes
3 answers
2k views

I'm trying to use the Github Gist API to get a list of all of my Gists like so: (ns epi.core) (.then (.fetch js/window "https://api.github.com/users/seisvelas/gists") (fn [data] (.log js/...
Alex V's user avatar
  • 3,686
0 votes
2 answers
373 views

Trying to use antd from clojurescript I'm looking for an idiomatic way to destructure js-objects. So assume we want to do e.g. import { Layout } from 'antd'; const { Header, Footer, Sider, Content ...
fricke's user avatar
  • 1,400
4 votes
1 answer
2k views

Web development newbie here. I'm trying to use the NPM react-table package with a ClojureScript/Reagent project. I'm failing to import the package properly. What I've done: 1/installed react-table ...
alex314159's user avatar
  • 3,267
2 votes
0 answers
323 views

In my ClojureScript code I am requiring a JavaScript module called seedrandom which is in the node_modules folder, like this: (ns something.core (:require ["seedrandom" :as rnd])) (js/console.log (....
Chris McCormick's user avatar
1 vote
1 answer
115 views

Is it possible to add classpaths in a Clojurescript program running on Nodejs at runtime?
pankajdoharey's user avatar
0 votes
1 answer
250 views

I followed this guide on using webpack + clojurescript, https://clojurescript.org/guides/webpack. It works perfectly when compiled with :none or :whitespace, but when I compile with :advanced one of ...
Vitorqb's user avatar
  • 130
3 votes
2 answers
1k views

I want to modify the visibility of a table when a button is clicked, utilizing clojurescript/javascript interop. I've tried {:on-click #(-> js/document ...
CambodianCoder's user avatar
1 vote
2 answers
699 views

I would like to show/hide a table when a font-awesome chevron button is clicked. The following code comes from http://jsfiddle.net/z0y0hp8o/6/. I would like to do the same thing, but in clojurescript ...
CambodianCoder's user avatar
0 votes
2 answers
939 views

I'm integrating quilljs with my clojurescript application. I'm including it in my project.cljs file like so: [cljsjs/quill "1.3.5-0"]. The compiler is minifying some methods and is causing an ...
CovertIII's user avatar
  • 1,093
0 votes
1 answer
108 views

In JavaScript there is the idiom: const ScrollTrigger = require('ScrollTrigger-classes'); var trigger = new ScrollTrigger({ once: true }); How do I do the same thing in ClojureScript ...
chris_l's user avatar
  • 57
1 vote
0 answers
295 views

I'm trying to install the Ant Design library via :npm-deps, so in my project.clj I have: :cljsbuild {:builds {:app {:source-paths ["src" "env/dev/cljs"] ...
acobster's user avatar
  • 1,677
1 vote
1 answer
463 views

this is a simple question, but I have been puzzling over it for a while now and it doesn't have much documentation to look at: I've got a development setup with ClojureScript, figwheel, npm deps ...
chris_l's user avatar
  • 57
0 votes
1 answer
288 views

I'm trying to validate a large clojure data-structure in Spec. I'm getting a failure on this part : {:pageName "HelloWorld" :pageType ::workPage :cells ["Hello World" "How are you?"]} using this : (...
interstar's user avatar
  • 27.5k
2 votes
1 answer
718 views

My actual behavior is (js->clj (clj->js [:a :b :c]) :keywordize-keys true) => ["a" "b" "c"] Desired behavior [:a :b :c]
Jp_'s user avatar
  • 6,253
3 votes
1 answer
469 views

I am trying to recreate the example in http://react-component.github.io/table/examples/animation.html to add animation to a table in a re-frame app. The table is rendered using antizer which is a ...
idyphall's user avatar