Questions tagged [shadow-cljs]

shadow-cljs is a tool that facilitates compiling your ClojureScript code for different targets

Resources

90 questions
0
votes
1 answer

How to properly setup shadow-cljs for hot reload?

I've been trying to get shadow-cljs hot reload to work but I haven't been able to, I've tried multiple settings in my project.clj file but none have worked. This is what my project.clj looks like: :shadow-cljs {:nrepl {:port 8777} …
stigma
  • 338
  • 2
  • 12
0
votes
1 answer

Shadow error when running the test runner

I have the following shadow-cljs.edn file. And I'm trying to run tests from a test directory in the browser: {:deps true :source-paths ["src"] :dependencies [[reagent "0.10.0"] [re-frame "0.12.0"] [re-frame-steroid…
zendevil
  • 899
  • 4
  • 13
  • 26
0
votes
0 answers

ajax.edn not available when importing in cljs

I'm importing ajax.edn in my cljs project like so: (:require [ajax.edn :as edn]) However, I'm getting the following error: ajax.edn isn't available. I do have cljs-ajax/cljs-ajax in my deps.edn like so: cljs-ajax/cljs-ajax {:mvn/version…
zendevil
  • 899
  • 4
  • 13
  • 26
0
votes
1 answer

Access HTML Input element in core.cljs Clojure Script

I have the following code in my core.cljs file. I want to access the value of input element. [:input {:type "text" :id "input_id"}] [:button {:onClick (fn [e] (first-function "arg1" "want-value-of-input_id-here") …
0
votes
1 answer

Require aws-amplify v.3 Amplify and Auth classes in clojurescript/reagent shadow-cljs app

I had a aws-amplify v.1.2.4 and it was working fine with (ns app.core ["aws-amplify" :default Amplify] ["aws-amplify" :refer [Auth]]) (js/console.log Amplify) was a module (js/console.log Auth) and was a AuthClass But I can't make it work…
0
votes
1 answer

Clojurescript repl trying to invoke Clojure function from the Transit library

I have both the cognitect.transit-clj and cognitect.transit-cljs dependencies because my project is Clojure on the backend and CLJS on the frontend. I'm connecting to a shadow-cljs repl in cider with cider-connect. In the repl, I do: (require…
Frank Henard
  • 3,638
  • 3
  • 28
  • 41
0
votes
0 answers

shadow-cljs not resolving dependency

Command from terminal:  npx shadow-cljs watch app build failure:   The required namespace "cljs-http.client" is not available, it was required by "learn/hello.cljs" How can I fix the above issue? shadow-cljs.edn: {:dependencies [[reagent "0.9.1"] …
Susan
  • 403
  • 6
  • 14
0
votes
1 answer

Writing a plugin file in ClojureScript for use in CKEditor

I currently have a project that is using ClojureScript, shadow-cljs, re-frame, and CKEditor. I am trying to figure out how to write a custom plugin for CKEditor usoing CLJS instead of JS. CKEditor uses the following to load external custom…
0
votes
1 answer

How to get CKEditor react component usable in ClojureScript

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] [clojure.string :as str] …
0
votes
2 answers

How to integrate Framework 7 with shadow-cljs and clojurescript

When I try to initialize Framework7 and Framework7-React within a clojurescript project, using shadow-cljs I get errors like this: f7.js:31 Uncaught TypeError: Framework7 is not a constructor at Object.init (f7.js:31) at F7App.value…
SeDav
  • 761
  • 7
  • 19
0
votes
1 answer

How to add shadow cljs watcher on js directory in a re-frame app?

I have created a basic re-frame app using the template lein new re-frame my-proj. This particular project is interfacing with a framework (ecsy) that requires some ES6 modules and ES6 classes e.g code that is generated by the user, not simply…
vt5491
  • 2,254
  • 2
  • 22
  • 34
0
votes
1 answer

unable to import local wasm npm package in shadow-cljs project

I am playing arounf trying to import wasm packages in my shadow-cljs project. It is bundled in a npm package, but i keep getting this error: The required JS dependency "canvas" is not available, it was required by "canvas/core.cljs". this is my…
Le Marin
  • 135
  • 1
  • 12
0
votes
1 answer

Using existing cljs components in a React project?

https://www.reddit.com/r/Clojure/comments/4el0xi/how_to_use_an_existing_reactjs_component_with/ There is this existing post about using existing ReactJS components in a CLJS/Reagent project. I'm looking to do the opposite. I have a bunch of CLJS…
sy89
  • 195
  • 2
  • 14
0
votes
1 answer

Using the resulting object from require call in ClojureScript?

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 using Shadow-CLJS for npm modules?
-1
votes
1 answer

How can I implement kafka consumers in cljs app?

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 successfully implemented Kafka producers in the…
1 2 3 4 5
6