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

Why is CIDER's REPL's behavior inconsistent? How to understand shadow-cljs' error message "No available JS runtime"?

I am using Clojure, ClojureScript, shadow-cljs, Emacs, Cider, and Lein to develop a web app project. The web application has been successfully built. I can access the interface on http://localhost:3005/. Yesterday, everything was working fine. After…
0
votes
2 answers

Why is shadow-cljs returning this error message on "Stale Output"? How to guarantee the watch for this building is running?

I am new to Clojure and not a pro in Javascript. I am watching the free part of the course on Reagent. Following the instructions on the course's repo, after doing the git clone and the npm install, the author indicates running $ npm run dev.…
0
votes
0 answers

Adding "ant-design-pro": "^2.3.2" and including it in project resulting in error

I'm getting the below error when I try to import "ant-design-pro": "^2.3.2" and use it in my ShadowCLJS project. The required JS dependency "./factoryWithThrowingShims" is not available, it was required by…
Kannan Ramamoorthy
  • 3,980
  • 9
  • 45
  • 63
0
votes
1 answer

Hosting the build from shadow-cjls

How do i host the browser build? I do not get it, i run: npx shadow-cljs release app npm start? node app.js is wrong I cannot launch app.js in the browser. What am i doing wrong? My shadow-cljs.edn looks like this: {:source-paths ["src"] …
David
  • 2,926
  • 1
  • 27
  • 61
0
votes
0 answers

What webserver does npx shadow-cljs release app use?

What webserver does shadow cljs with this config: {:source-paths ["src"] :dependencies [[binaryage/devtools "1.0.6"] [nrepl "0.9.0"] [reagent "1.1.1"]] :builds {:app {:target :browser …
David
  • 2,926
  • 1
  • 27
  • 61
0
votes
1 answer

Error: Electron failed to install correctly - shadow-cljs - failed to load module$node_modules$electron$index

this error occurs when running electron progam with clojruescript and shadow-cljs node version 16 electron 17 or 19 - both fail clojurescript 11.1.4 shadow-cljs 2.18.0 shadow-cljs - failed to load module$node_modules$electron$index SHADOW import…
0
votes
1 answer

React.createElement: type is invalid using react-bootstrap in ClojureScript

I'm trying to use react-bootstrap within re-frame project. I've installed react-bootstrap with npm install react-bootstrap and using its components like the following: (:require ;; ... ["react-bootstrap/Button" :as Button] ;; ... (defn…
0
votes
1 answer

How to write frontend (reagent) and backend (express.js) applications in a same clojurescript setup?

Can I write frontend (reagent) and backend (express.js) applications in a same clojurescript project? Following these two pages. Writing Node.js applications in Clojure and using NPM packages Backend (express.js) shadow-cljs Frontend (reagent,…
madeinQuant
  • 1,721
  • 1
  • 18
  • 29
0
votes
1 answer

Webpack w/ Babel loader returning empty object

I have a build pipeline that that takes ClojureScript code and transpiles that down to Javascript using Shadow-Cljs. The transpile can export a npm module or a node library. The output is then passed through Webpack with Babel loader to polyfill for…
a11hard
  • 1,904
  • 4
  • 19
  • 41
0
votes
1 answer

rid3, shadow-cljs & drag; different behavior in dev and prod

I'm creating an application which can be used to make an overview of your IT-Landscape. Currently it can show a table with the interfaces in your environment and their connected applications. It is also capable of creating an SVG image from this…
0
votes
1 answer

Unclear error from react-leaflet with shadow-cljs

I'm getting this error message when I compile code for production and deploy to server but not getting it locally. I'm stumped as to why I can't re-produce locally Uncaught TypeError: Cannot read properties of undefined (reading 'replace') at E…
0
votes
1 answer

How to manage static files in shadow-cljs?

For example, I have an index.html for the project. I'd like that whenever I build the project, it's automatically copied to the public project. Is there a built-in way to achieve this?
Lyhokia
  • 73
  • 1
  • 3
0
votes
1 answer

How to call a method of js instance in cljs

I'm very new to the cljs. I'm practicing the cljs with re-frame. I faced an issue to access a method of js instance. (->> quill-contents (.parse js/JSON) (.setContents @editor)) If I tried to call .setContents of @editor which is the js…
mununki
  • 350
  • 4
  • 16
0
votes
1 answer

Shadow SLJS not detecting file changes through Docker mount

When using Shadow CLJS inside a Docker container (using WSL2 on Windows 10 as the Docker host), where the source files are mounted into the container via the Docker interface, it doesn't seem to detect changes in the files and recompile. Shadow CLJS…
MidnightLightning
  • 6,715
  • 5
  • 44
  • 68
0
votes
1 answer

Emacs Cider with Shadow-cljs browser settings on Windows wsl2 hot code reload

I would like to get hotcode reload to work on Windows wsl2 in emacs/cider using shadow-cljs (it doesn't work with shell shadow-cljs watch command in the terminal as well). I should say oddly 1 in every couple of tries using it it will actually run…
envymike
  • 155
  • 2
  • 7