Context
I am building a Node.js library with ClojureScript and shadow-cljs.
All development is done with ClojureScript but the build artefact is a NPM package. Example:
(ns com.example.answer)
(defn answer [] 42)
build... release... then
const…
I have a styles.css file and I need to load it from a cljs to pass it as a props to a react lib.
The import in node is:
import styles from './styles.css'
Is it possible to do this in ClojureScript with shadow-cljs?
I'm using shadow-cljs in a ClojureScript project. When I do
shadow-cljs watch app
the console log the error shadow-cljs - socket connect failed, server process dead?.
I restarted my computer but the error still
What can I do to fix this problem?
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 through NPM, it's in my project directory
2/in my…
I'm working with a basic ReactNative app using Emacs with Cider and ShadowCLJS. I can develop with the REPL pretty consistently but as soon as I accidentally save a file that has a syntax error in it then I lose communication to the REPL. Anything I…
I have been using Clojure, ClojureScript, lein, shadow-cljs, Emacs, and CIDER to work on a Clojure/ClojureScript dynamic web app project.
Usually, I build the project by executing the command cider-jack-in-cljs in Emacs, choosing shadow-cljs, then…
I have a Clojure/ClojureScript project that I am able to build locally. The project is built with the following command:
Pedros-MacBook-Air:balance pedro$ shadow-cljs watch app
shadow-cljs - config:…
I am trying to use the react-native-reanimated library in the clojurescript project. And for this library, I have to create worklets by adding the "worklet" directive at the top. ex:
function someWorklet(greeting) {
'worklet';
console.log("Hey…
how to rerender the whole reagent tree when we save file and shadow-cljs reloads?
react 18 has new createRoot api
and even before - if nothing changed calling render has no effect
I am getting this error when trying to build a Clojurescript project with shadow-cljs. I've tried looking for syntax errors as described here but I can get the same the error with a single line and a single import although not all imports cause the…
I'm trying to use @walletconnect/web3-provider package from npm in ClojureScript, and when I call a function I get an error: TypeError: $jscomp$generator$this.send is not a function
Here is JavaScript code which is used, the problem is in 4th line:…
here is my code,running on shadow-cljs.
(ns app.main
(:require [goog.structs.LinkedMap]))
(extend-type goog.structs.LinkedMap
cljs.core/IFn
(-invoke
([m k] (.get m k nil))
([m k not-found] (.get m k not-found))))
(def m…
I am currently working on a sample app on Cordova with Clojurescript. I am using shadow-cljs to build the project but somehow I could not find a way to make the code reload to work.
Instead, I have to use the browser build when developing since it…
I am trying to evaluate some Clojure forms in VS Code using the Calva REPL.
When I run any of these commands, I get the error:
No application has connected to the REPL server. Make sure your JS environment has loaded your compiled ClojureScript…