Questions tagged [shadow-cljs]

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

Resources

90 questions
1
vote
1 answer

How to separate development and production environments in shadow-cljs?

I want to separate development and production environment variables for my shadow-cljs which is running in conjunction with a lein app through the Luminus template. My production environment is a docker container running on heroku. It should work in…
zendevil.eth
  • 974
  • 2
  • 9
  • 28
1
vote
0 answers

Unable to launch shadow-cljs with cider

I installed shadow-cljs as follows: npm install -g shadow-cljs Then I created a shadow-cljs.edn file, with the following: [{:id "app" :source-paths ["src/cljs" "src/cljc" "dev"] :figwheel {:on-jsload…
zendevil
  • 899
  • 4
  • 13
  • 26
1
vote
1 answer

Clojurescript dead-code elimination apparently not working

I have a ClojureScript project with the following barebone frontend app (main being the entry point): (ns shadowman.app (:require ;; [cljs-http.client :as http] ;; [reagent.core :as r] )) (defn main "" [] (js/console.log "hi from…
1
vote
1 answer

How to resolve NPM dependency problem with shadow-cljs using react-swipeable-views?

I have a ClojureScript project using shadow-cljs. In this project I am using the NPM package @material-ui, which works fine. Now I would like to use react-swipeable-views. Therefor I have extended my package.json: "dependencies": { …
Witek
  • 6,160
  • 7
  • 43
  • 63
1
vote
1 answer

How to npm packages in Fulcro?

I'm following the Fulcro 3 Dev Guide, section Using Javascript React Components, with the Fulcro Template project, trying to import the Material-UI React components. I added the package with npm install --save @material-ui/core and modified the…
Jp_
  • 5,973
  • 4
  • 25
  • 36
1
vote
2 answers

Launch cljs nREPL connected to lein project template

I have created a ClojureScript project using: lein new re-frame my-project I've then opened it in IntelliJ using Cursive. In the terminal after typing lein dev, it prompts me with the message: shadow-cljs - HTTP server available at…
Mr. Robot
  • 1,334
  • 6
  • 27
  • 79
0
votes
1 answer

Leaflet React Markercluster - packages not working in ClojureScript

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 another, sometimes bable throws an error or some…
0
votes
1 answer

How to import a shadow-cljs project into another shadow-cljs project with a different configuration

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 will call it project A. The other, we will call it…
0
votes
1 answer

WalletConnect v2.0 library integration issues with shadow-cljs

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 Installation I installed the libraries with npm : npm…
0
votes
0 answers

Call ClojureScript export, from a JavaScript file (using shadow-cljs)

I have a simple clojurescript application that I want to export to an already established application using a javascript - express - framework. I can't figure out how I should call my ClojureScript export inside JavaScript. How should I go about…
0
votes
1 answer

How to explain this arrangement for :cljsbuild on a Clojure/ClojureScript project? And how to extend it for Continuous Deployment?

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. :cljsbuild {:builds [{:id "whitespace" …
Pedro Delfino
  • 2,421
  • 1
  • 15
  • 30
0
votes
1 answer

Is there any difference on how to declare a ClojureScript dependency on shadow-cljs.edn file?

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 "a full name" declaration, indicated as…
Pedro Delfino
  • 2,421
  • 1
  • 15
  • 30
0
votes
1 answer

PivotTableUI in clojurescript from react-pivottable on change interface not render new status

The component is loaded correctly with the initial data, but the data does not change when the state is changed from the interface, what can I be doing wrong? (ns ui.pivottable.react-pivottable (:require ["react-pivottable/PivotTableUI" :default…
0
votes
0 answers

I use the emacs to start or connect clojurescript but show error: ClojureScript is not available

I use the emacs to start or connect clojurescript but show error: error in process filter: ClojureScript is not available. See https://docs.cider.mx/cider/basics/clojurescript for details In terminal I use `npx shadow-cljs watch main` to start…
quan xing
  • 1
  • 1
0
votes
1 answer

In a Clojure/ClojureScript project, what are the advantages of declaring dependencies on a `deps.edn` file instead of using `shadow-cljs.edn`?

I have been using Clojure, ClojureScript, lein, shadow-cljs, re-frame, reagent, Emacs, and CIDER to work on a Clojure/ClojureScript dynamic web app project. Currently, the project uses project.clj and shadow-cljs.edn to declare dependencies. There…