Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
Filter by
Sorted by
Tagged with
Advice
0 votes
2 replies
13 views

In clojure, the println function returns a nil: \>(println "a" a nil This makes it awkward to use print to access an intermediate value when print debugging: Say I have: (* (+ 5 10) (- ...
BnMcGn's user avatar
  • 1,460
1 vote
0 answers
72 views

I am using Emacs+Cider to develop a ClojureScript project with shadow-cljs. When I am using Cider with a .clj project, everything works fine. But in shadow-cljs projects specifically, I don't get the ...
user2649762's user avatar
0 votes
1 answer
59 views

Shadow-cljs has a resource loader that can include literal files into the Clojurescript code (ns app.my (:require [shadow.resource :as rc])) (rc/inline "file.txt") I need a macro that ...
user2649762's user avatar
1 vote
1 answer
71 views

When execute the script in javascript, it is normal as expected, however, using @stoqey/ib with clojurescript unsuccessfully. Please comment how to access the constructor of @stoqey/ib with ...
madeinQuant's user avatar
  • 1,823
1 vote
1 answer
76 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
0 votes
1 answer
67 views

I'm trying to use K6 with a test written in ClojureScript. K6 is written in Golang, runs a bundled JS runtime, which in turn runs tests written in JavaScript. I don't have a problem running a ...
Pavel Gurkov's user avatar
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
1 vote
1 answer
112 views

I am learning how to use reagent clojure and I am creating a password management application with some basic crud operations as well. Right now when I try to delete a password or use my password ...
user23641408's user avatar
1 vote
1 answer
86 views

I try to run ClojureScript "hello-world" project on Windows 10 Home 22H2 19045.4529. I follow documentation from https://clojurescript.org/guides/quick-start and get following output: C:\...
mikeeeeeee's user avatar
1 vote
2 answers
173 views

I have a problem with a code I am developing in Clojure: (ns problem2 (:require [cheshire.core :as json] [clojure.spec.alpha :as s] [invoice-spec])) (...
Luis Carlos Castillo Martin's user avatar
2 votes
2 answers
106 views

I am currently trying to use TailWindElements-React in Clojure Script. In JS an example would look like this: import React, { useState } from "react"; import { TECollapse, TERipple } from &...
Burning_Beef's user avatar
0 votes
1 answer
87 views

I am currently trying to use TailWindElements-React in Clojure Script. In JS an example would look like this: import React, { useState } from "react"; import { TECollapse, TERipple } from &...
Burning_Beef's user avatar
1 vote
1 answer
97 views

How do you index and count items within an indexed map? Here's an example - I have example JSON data that looks like this - [ { "id" : "z1", "content_type" : "...
txesc's user avatar
  • 31
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
1 answer
115 views

In Clojure REPL: (macroexpand-1 `(sum 2 1)) ; (user/sum 2 1) In Clojurescript REPL: (macroexpand-1 `(sum 2 1)) ; AssertionError: Assert failed: Argument to macroexpand-1 must be quoted Why it ...
rusfrompiter's user avatar
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
0 votes
1 answer
103 views

I am working on an Electric Clojure project and I need to import a CSS file to style my application. I add styles using dom/element and it works but the code looks so crowded. What is the best way to ...
Huseyin Yavas's user avatar
1 vote
2 answers
376 views

In ClojureScript, I initially stored login credentials and authorization information in an atom state. However, I encountered a persistent issue where the atom state gets flushed upon page refresh, ...
Huseyin Yavas's user avatar
2 votes
1 answer
198 views

(ns training-clj.querys (:require [honey.sql :as honey] [next.jdbc.sql :as jdbc])) (defn get-by-username [db username] (let [query (honey/format {:select [:*] ...
newbie's user avatar
  • 21
3 votes
1 answer
155 views

I have a record, an instance of and I print it to EDN string: (ns my) (defrecord Ref [type id]) (def rich (->Ref :Person 42) (pr-str rich) I would like to get "#my.Ref [:Person 42]. But I get ...
Witek's user avatar
  • 6,520
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
0 votes
1 answer
88 views

I'm trying to define a function (or macro) which should only accept as arguments functions from a certain namespace (ns ns1) (defn high-function[f & params] (if (condition on f meta ...
secret-john's user avatar
0 votes
1 answer
97 views

Background For reference, I am building a little ECS game engine with: clojure threejs as one of the graphics targets shadow-cljs for builds The full code for the example can be found here. Problem ...
hjk's user avatar
  • 3
1 vote
1 answer
105 views

I am trying to set up a full stack Clojure and ClojureScript web app. I am using Reagent and Ring but am running into a 403 error when I try post data using promesa. On the ClojureScript side I have ...
kevinewing's user avatar
1 vote
1 answer
216 views

Request detail: We want to do some image manipulation and conversion, in the browser. We prefer WebAssembly, because of its runtime efficiency. We want to use ImageMagick, because it can read SVG, Ai, ...
Cristian Onisor's user avatar
1 vote
0 answers
101 views

I use Electric Clojure for creating web applications. I want to get an input from the client and redirect to another page with url query parameter and show the input redirected page. I tried Ring ...
Huseyin Yavas's user avatar
1 vote
3 answers
169 views

I'm writing a Clojure library to generate Voronoi diagrams using the quad-edge data structure as described in this research paper. I was using refs to represent the edge records, but I wanted to ...
M. E. Singer's user avatar
2 votes
1 answer
218 views

I was able to build both the JavaScript bundle, and the Go binary. But, I'm currently unable, due to lack of knowledge, to make the Go server run for the backend, and to display the public/index.html ...
BuddhiLW's user avatar
  • 647
1 vote
1 answer
73 views

I don't know how to set the elevation for materia-ui paper in reagent-material-ui (https://github.com/arttuka/reagent-material-ui) Paper elevation in Material UI: https://mui.com/material-ui/react-...
secret-john's user avatar
-1 votes
1 answer
130 views

I am working on a project that involves implementing a Kafka messaging bus for resiliency along with SQS in my app. The backend services are developed in CLJ and the frontend script is in CLJS. I have ...
ctrl_dev's user avatar
1 vote
1 answer
581 views

I have a clojure ring server which I want to post data to so I can do stuff in my database such as add, update and delete users. I'm currently stuck on receiving the body in a format I can ...
Ayabonga Qwabi's user avatar
1 vote
0 answers
372 views

Something confuse me when trying use clj command line tools to compile and bundle clojurescript with npm modules. My clj command : clj -M --main cljs.main \ --repl-opts "{:launch-browser ...
kmrk's user avatar
  • 59
-1 votes
2 answers
126 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
2 answers
270 views

How can I trigger the onchange event of a controlled input in a Reagent application? [:input {:on-change (fn [e] ...) :id :my-input}] Reagent implements React and the input components are Controlled ...
Bit Handshake's user avatar
1 vote
1 answer
280 views

I want to use a cluster plugin for Leaflet. Since I am using ClojureScript I guess I need a React implementation. I have tried all of the available packages at npm. They all fail at one point or ...
Polymatheia's user avatar
1 vote
1 answer
308 views

I am using the example from the nbb docs on calling nbb from node, which works as expected, generally, using the following (slightly modified) snippets: ;; example.cljs (ns example) (defn greet [name]...
Sir Robert's user avatar
  • 5,052
-1 votes
1 answer
392 views

Here I would like to allow calling a method of my smart contract from a ethers provider that uses WalletConnect. I proceed as follows to connect a user to WalletConnect : (ns my.project (:...
Antoine's user avatar
  • 47
1 vote
1 answer
120 views

In ClojureScript, What is the difference between int? and integer? and number? ?
hata's user avatar
  • 197
0 votes
1 answer
565 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
0 votes
1 answer
218 views

I want to connect an re-frame clojurescript app to a headless content manager to get posts. The content is returned to me as a string with HTML tag - something like below: <h1>dsfdsfdsf</h1&...
gwenael's user avatar
  • 15
0 votes
1 answer
563 views

I am currently trying to use the WalletConnect v2.0 library using Web3Modal SDK in a clojuscript project with shadow-cljs. To do this I followed the standalone installation: Web3Modal Standalone ...
Antoine's user avatar
  • 47
0 votes
0 answers
117 views

I'm implementing routing in clojurescript SPA (built using reagent and reframe). For routing i'm using bidi and pushy. Below is my code for routing. (def routes ["/" {"" ...
Navneet Singh's user avatar
1 vote
2 answers
183 views

I am trying to use Joy UI and its dark mode https://mui.com/joy-ui/customization/dark-mode/ in my cljs project and am stuck with translating the part below to cljs code. import * as React from 'react';...
Darren Kim's user avatar
1 vote
2 answers
56 views

I have the following over-engineered code that displays 2 buttons on a page, but when I click on a button nothing happens. I'm using reagent (r) and mui (m). (defn settings [id] (let [active "...
Patrick Waddingham's user avatar
1 vote
0 answers
184 views

My goal is to have a ClojureScript REPL (targeting Node.js) using Figwheel and Clojure Tools (not Leiningen). But when I launch Figwheel it seems to start correctly but never completes. deps.edn {:...
customcommander's user avatar
3 votes
1 answer
86 views

Description of the situation I want to make a form template for an element, but they must be dynamically created. The meta data involved in the Component should use the variable-name passed as it's ...
Pedro Gomes Branquinho  Facti's user avatar
0 votes
1 answer
82 views

In my re-frame app, I have a non-trivial svg that is animated. Currently, every animation "frame" means recreating the whole svg, although only the style="display: none" of one ...
Evgeniy Berezovsky's user avatar
0 votes
1 answer
52 views

I have been dealing with this Clojure/Clojurescript project called clojurescript.csv. On the project.clj file there is a special form of construction for :cljsbuild which I haven't seen yet. :...
Pedro Delfino's user avatar
1 vote
1 answer
211 views

I have been working on a Clojure/ClojureScript project and something intrigues me. On the shadow-cljs.edn file, there is a declaration of the dependencies. As you might see below, some of them have &...
Pedro Delfino's user avatar
1 vote
2 answers
174 views

I have a triply nested component (in different files) in Reagent + ShadowCLJS. When editing and saving this file, the changes don't show immediately until editing and saving the parent component. For ...
Somé's user avatar
  • 27

1
2 3 4 5
47