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}
…
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…
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…
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")
…
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…
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…
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"]
…
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…
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]
…
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…
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…
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…
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…
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?
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…