Fork me on GitHub
#calva
<
2022-05-27
>
pinkfrog09:05:20

I wonder how the node repl is run. There is no node mentioned in the directory: https://github.com/BetterThanTomorrow/dram/tree/published/drams/calva_cljs_node_quick_start

pez10:05:05

Yes, it is basically the ClojureScript QuickStart from here: https://clojurescript.org/guides/quick-start#running-clojurescript-on-node.js

pinkfrog13:05:55

When I run with deps+cljs-browser or deps+cljs-node, I always got

pez13:05:45

Seems to be something with your project. Try with a minimal project:

cljs-quick-start-node
├─ src
│  └─ hello_world
│     └─ core.cljs
└─ deps.edn
deps.edn
{:deps {org.clojure/clojurescript {:mvn/version "1.10.758"}}}
src/hello_world/core.cljs
(ns hello-world.core)

(println "Hello world!")
Then jack in. If that works, then the problems is in the diff between this minimal project and the project you are using. 😃

pez14:05:00

A way to create this minimal project is to run the command Calva: Fire up ClojureScript Quickstart Node REPL (not sure about the name, something like that). Then locate the temp directory where it is created and copy the project. (Though creating it manually might be easier. 😃 )

pinkfrog14:05:14

Yup. Must be some stale output. Luckily it works now.

metal 1